diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-08 18:24:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-08 18:24:09 +0300 |
commit | 6fa6509bff3e0f761d8dc8979a17b190c482ae72 (patch) | |
tree | 4c332b15782138663d2c381ba85cf5a596a48577 | |
parent | 4e96ac9f7b42fd26b988b231e79c25b28a7fe6af (diff) | |
download | mv-6fa6509bff3e0f761d8dc8979a17b190c482ae72.tar.gz mv-6fa6509bff3e0f761d8dc8979a17b190c482ae72.tar.bz2 mv-6fa6509bff3e0f761d8dc8979a17b190c482ae72.tar.xz mv-6fa6509bff3e0f761d8dc8979a17b190c482ae72.zip |
Fix extended minimaps building.
-rw-r--r-- | src/gui/windows/minimap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index 797427c50..2d7b8ba65 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -155,7 +155,10 @@ void Minimap::setMap(const Map *const map) | BlockMask::WATER); for (int ptr = 0; ptr < size; ptr ++) - *(data ++) = -!(map->mMetaTiles[ptr].blockmask & mask); + { + *(data ++) = (map->mMetaTiles[ptr].blockmask & mask) ? + 0x0 : 0x00ffffff; + } SDL_UnlockSurface(surface); |