summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-02 21:02:34 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-02 21:02:34 +0300
commit370cb1fa897604e5d7bf9543881afad80f45f3ba (patch)
tree66ea88a44010ebeb13ec6258b37b9a93e04c909d /src/map.cpp
parent1d843dd814f92004efbb4574be0d898d4edf6359 (diff)
downloadmanaverse-370cb1fa897604e5d7bf9543881afad80f45f3ba.tar.gz
manaverse-370cb1fa897604e5d7bf9543881afad80f45f3ba.tar.bz2
manaverse-370cb1fa897604e5d7bf9543881afad80f45f3ba.tar.xz
manaverse-370cb1fa897604e5d7bf9543881afad80f45f3ba.zip
dehardcode some mode render mode constans usage.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 388f2eccf..c28f45b71 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -384,7 +384,7 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
#ifdef USE_OPENGL
int updateFlag = 0;
- if (mOpenGL == 1 || mOpenGL == 3)
+ if (mOpenGL == RENDER_NORMAL_OPENGL || mOpenGL == RENDER_GLES_OPENGL)
{
if (mLastX != startX || mLastY != startY || mLastScrollX != scrollX
|| mLastScrollY != scrollY)
@@ -439,8 +439,8 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
else
{
#ifdef USE_OPENGL
-// if ((mOpenGL == 1 || mOpenGL == 3) && updateFlag != 2)
- if (mOpenGL == 1 || mOpenGL == 3)
+ if (mOpenGL == RENDER_NORMAL_OPENGL
+ || mOpenGL == RENDER_GLES_OPENGL)
{
if (updateFlag)
{
@@ -480,7 +480,7 @@ void Map::draw(Graphics *const graphics, int scrollX, int scrollY)
{
if (Actor *const actor = *ai)
{
- if (!mOpenGL)
+ if (mOpenGL == RENDER_SOFTWARE)
{
const int x = actor->getTileX();
const int y = actor->getTileY();
@@ -1444,7 +1444,7 @@ void Map::reduce()
#ifdef USE_SDL2
return;
#else
- if (!mFringeLayer || mOpenGL > 0 ||
+ if (!mFringeLayer || mOpenGL != RENDER_SOFTWARE ||
!config.getBoolValue("enableMapReduce"))
{
return;