summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-17 17:09:00 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-17 17:09:00 +0300
commitb83bca17d42761c41f097ea315d01bb89105f618 (patch)
treec1b16a828c202f7b86e9375ecd75e43ed454f253 /src/map.cpp
parente183a929a3653446a6545ca764e47c47f7b00e50 (diff)
downloadmanaplus-b83bca17d42761c41f097ea315d01bb89105f618.tar.gz
manaplus-b83bca17d42761c41f097ea315d01bb89105f618.tar.bz2
manaplus-b83bca17d42761c41f097ea315d01bb89105f618.tar.xz
manaplus-b83bca17d42761c41f097ea315d01bb89105f618.zip
Fix map redrawing if changing map view mode.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index fa9d014df..c5a7a8816 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -727,8 +727,9 @@ void Map::draw(Graphics *graphics, int scrollX, int scrollY)
bool overFringe = false;
int updateFlag = 0;
- if (mLastX != startX || mLastY != startY)
+ if (mRedrawMap || mLastX != startX || mLastY != startY)
{
+ mRedrawMap = false;
// fill vectors
mLastX = startX;
mLastY = startY;
@@ -1913,6 +1914,11 @@ void Map::reduce()
logger->log("tiles reduced: %d", cnt);
}
+void Map::redrawMap()
+{
+ mRedrawMap = true;
+}
+
SpecialLayer::SpecialLayer(int width, int height, bool drawSprites):
mWidth(width), mHeight(height)
{