Fix compile errors on Linux/SDL

qteditor
Lukas Werling 2016-04-06 19:17:52 +02:00
parent 879d501592
commit de98bbef46
3 changed files with 7 additions and 2 deletions

View File

@ -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);
}

View File

@ -27,6 +27,10 @@
#include <pthread.h>
#endif
#ifdef USE_SDL_MAINLOOP
#include <SDL.h>
#endif
#ifdef USE_WIN32_WINDOWS
class CStdMessageProc : public StdSchedulerProc
{

View File

@ -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"