summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-16 01:12:24 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-16 01:12:24 +0300
commit1781049dee0da16fdd7148f36a699523cd08ecaf (patch)
tree30cbaf5d6887c88ad06404530b5b86c67197586f
parent605205eaba29773d9b6c67d5920bf6964366f37e (diff)
downloadmanaplus-1781049dee0da16fdd7148f36a699523cd08ecaf.tar.gz
manaplus-1781049dee0da16fdd7148f36a699523cd08ecaf.tar.bz2
manaplus-1781049dee0da16fdd7148f36a699523cd08ecaf.tar.xz
manaplus-1781049dee0da16fdd7148f36a699523cd08ecaf.zip
Fix player position based on height after warp to new map.
-rw-r--r--src/being/being.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 1ca4cb700..838892119 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3434,6 +3434,7 @@ void Being::setMap(Map *const map)
{
mOffsetY = mMap->getHeightOffset(mX, mY);
mFixedOffsetY = mOffsetY;
+ mOldHeight = 0;
mNeedPosUpdate = true;
}
}