diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-17 17:09:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-17 17:09:00 +0300 |
commit | b83bca17d42761c41f097ea315d01bb89105f618 (patch) | |
tree | c1b16a828c202f7b86e9375ecd75e43ed454f253 /src/game.cpp | |
parent | e183a929a3653446a6545ca764e47c47f7b00e50 (diff) | |
download | plus-b83bca17d42761c41f097ea315d01bb89105f618.tar.gz plus-b83bca17d42761c41f097ea315d01bb89105f618.tar.bz2 plus-b83bca17d42761c41f097ea315d01bb89105f618.tar.xz plus-b83bca17d42761c41f097ea315d01bb89105f618.zip |
Fix map redrawing if changing map view mode.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 623d2a069..494d35692 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1040,8 +1040,12 @@ void Game::handleInput() // Find path to mouse (debug purpose) if (!player_node->getDisableGameModifiers()) { - viewport->toggleDebugPath(); - miniStatusWindow->updateStatus(); + if (viewport) + viewport->toggleDebugPath(); + if (miniStatusWindow) + miniStatusWindow->updateStatus(); + if (mCurrentMap) + mCurrentMap->redrawMap(); used = true; } break; |