diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-08 19:48:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-08 19:48:26 +0300 |
commit | 196cc38da19b867eaa9419343dd6ecd8212af354 (patch) | |
tree | afb2d39f88c213702a339cae6fa08f8248b5c1af /src/map.cpp | |
parent | a80a1c69f8a5f4db88ade16e3b9d53f7b648be47 (diff) | |
download | plus-196cc38da19b867eaa9419343dd6ecd8212af354.tar.gz plus-196cc38da19b867eaa9419343dd6ecd8212af354.tar.bz2 plus-196cc38da19b867eaa9419343dd6ecd8212af354.tar.xz plus-196cc38da19b867eaa9419343dd6ecd8212af354.zip |
Fix compilation errors and warnings in different modes.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp index e68f063d9..c31356276 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -358,6 +358,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) graphics->mWidth, graphics->mHeight)); } +#ifdef USE_OPENGL int updateFlag = 0; if (mOpenGL == 1) @@ -382,6 +383,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) updateFlag = 1; } } +#endif if (mDebugFlags == MAP_SPECIAL3 || mDebugFlags == MAP_BLACKWHITE) { @@ -412,6 +414,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) } else { +#ifdef USE_OPENGL if (mOpenGL == 1 && updateFlag != 2) { if (updateFlag) @@ -423,6 +426,7 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY) (*layeri)->drawOGL(graphics); } else +#endif { /* if (updateFlag) |