summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
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 /src/being/being.cpp
parent605205eaba29773d9b6c67d5920bf6964366f37e (diff)
downloadmv-1781049dee0da16fdd7148f36a699523cd08ecaf.tar.gz
mv-1781049dee0da16fdd7148f36a699523cd08ecaf.tar.bz2
mv-1781049dee0da16fdd7148f36a699523cd08ecaf.tar.xz
mv-1781049dee0da16fdd7148f36a699523cd08ecaf.zip
Fix player position based on height after warp to new map.
Diffstat (limited to 'src/being/being.cpp')
-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;
}
}