forked from Mirrors/openclonk
Fix compile errors on Linux/SDL
parent
879d501592
commit
de98bbef46
|
@ -3658,7 +3658,7 @@ void C4Landscape::SetGravity(C4Real g)
|
|||
BYTE C4Landscape::_GetPix(int32_t x, int32_t y) const
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (x < 0 || y < 0 || x >= Width || y >= Height) { BREAKPOINT_HERE; }
|
||||
if (x < 0 || y < 0 || x >= p->Width || y >= p->Height) { BREAKPOINT_HERE; }
|
||||
#endif
|
||||
return p->Surface8->_GetPix(x, y);
|
||||
}
|
||||
|
@ -3721,7 +3721,7 @@ int32_t C4Landscape::GetPlacement(int32_t x, int32_t y) const // get landscape m
|
|||
BYTE C4Landscape::_GetBackPix(int32_t x, int32_t y) const // get landscape pixel (bounds not checked)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (x < 0 || y < 0 || x >= Width || y >= Height) { BREAKPOINT_HERE; }
|
||||
if (x < 0 || y < 0 || x >= p->Width || y >= p->Height) { BREAKPOINT_HERE; }
|
||||
#endif
|
||||
return p->Surface8Bkg->_GetPix(x, y);
|
||||
}
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#ifdef USE_SDL_MAINLOOP
|
||||
#include <SDL.h>
|
||||
#endif
|
||||
|
||||
#ifdef USE_WIN32_WINDOWS
|
||||
class CStdMessageProc : public StdSchedulerProc
|
||||
{
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "game/C4Application.h"
|
||||
#include "graphics/C4DrawGL.h"
|
||||
#include "editor/C4Console.h"
|
||||
#include "editor/C4ViewportWindow.h"
|
||||
#include "platform/StdFile.h"
|
||||
#include "lib/StdBuf.h"
|
||||
|
|
Loading…
Reference in New Issue