summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-26 14:48:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-26 14:48:29 +0300
commit663fa298bd411ca08b2d1d5035aefc11c6c54c87 (patch)
treef47cae11096c1659534448f9b9b20bfa5c7cf2ff /src
parent2c190ef2bdd8bbfb9af39d2e2a5219242762ee23 (diff)
downloadmv-663fa298bd411ca08b2d1d5035aefc11c6c54c87.tar.gz
mv-663fa298bd411ca08b2d1d5035aefc11c6c54c87.tar.bz2
mv-663fa298bd411ca08b2d1d5035aefc11c6c54c87.tar.xz
mv-663fa298bd411ca08b2d1d5035aefc11c6c54c87.zip
Fix being position on map based on height.
Diffstat (limited to 'src')
-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 d78d8c2d0..35d5bc9ee 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3577,6 +3577,7 @@ void Being::setTileCoords(const int x, const int y)
{
mOffsetY = mMap->getHeightOffset(mX, mY);
mFixedOffsetY = mOffsetY;
+ mOldHeight = 0;
mNeedPosUpdate = true;
}
}