diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-02 23:22:29 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-02 23:22:29 +0200 |
commit | 325ddf31483ced5444aa7bde38cc41ac8d3f04c2 (patch) | |
tree | 87c4a3ecd753ec77fdb464b448ec7d75e0f82541 /src/game.cpp | |
parent | 4ead5c9f65ffbf1de9b0cb60cae06b116badbced (diff) | |
download | plus-325ddf31483ced5444aa7bde38cc41ac8d3f04c2.tar.gz plus-325ddf31483ced5444aa7bde38cc41ac8d3f04c2.tar.bz2 plus-325ddf31483ced5444aa7bde38cc41ac8d3f04c2.tar.xz plus-325ddf31483ced5444aa7bde38cc41ac8d3f04c2.zip |
Fix error where automatically navigation bar can show portal with coord 0,0.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index efa5085f5..5984c35c7 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1392,6 +1392,9 @@ void Game::changeMap(const std::string &mapPath) strprintf(_("Error while loading %s"), fullMap.c_str())); } + if (mCurrentMap) + mCurrentMap->saveExtraLayer(); + if (newMap) newMap->addExtraLayer(); |