summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-26 01:12:32 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-26 01:13:25 +0300
commit6f8da91cf4af4057ae4d2b9a2e2cd654e54d2d2c (patch)
treea5653f6ee58e814a8c33305710616e85e4717f12 /src/map.cpp
parentb296e03e228f4506b65852b055df007ccbe14310 (diff)
downloadmanaplus-6f8da91cf4af4057ae4d2b9a2e2cd654e54d2d2c.tar.gz
manaplus-6f8da91cf4af4057ae4d2b9a2e2cd654e54d2d2c.tar.bz2
manaplus-6f8da91cf4af4057ae4d2b9a2e2cd654e54d2d2c.tar.xz
manaplus-6f8da91cf4af4057ae4d2b9a2e2cd654e54d2d2c.zip
disable map reduce in SDL2.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 7b83e9c7b..011a19319 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1439,11 +1439,15 @@ void Map::clearIndexedTilesets()
void Map::reduce()
{
+#ifdef USE_SDL2
+ return;
+#else
if (!mFringeLayer || mOpenGL > 0 ||
!config.getBoolValue("enableMapReduce"))
{
return;
}
+#endif
int cnt = 0;
for (int x = 0; x < mWidth; x ++)