summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-24 22:01:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-24 22:01:56 +0300
commitb59f9cdb8f5ae20fa0ad21565705992851134e64 (patch)
tree872ab45ca83515bfe123cc320bd33ae393de0f69 /src/being
parent3ed7e4306f57e147c050d47bdb4abc5ea41c5797 (diff)
downloadplus-b59f9cdb8f5ae20fa0ad21565705992851134e64.tar.gz
plus-b59f9cdb8f5ae20fa0ad21565705992851134e64.tar.bz2
plus-b59f9cdb8f5ae20fa0ad21565705992851134e64.tar.xz
plus-b59f9cdb8f5ae20fa0ad21565705992851134e64.zip
Fix random wrong y position if non local player moved on tiles with height > 0.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 14610d526..b8f4ce414 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -3756,9 +3756,9 @@ void Being::setTileCoords(const int x, const int y)
mY = y;
if (mMap)
{
- mOffsetY = mMap->getHeightOffset(mX, mY);
+ mOffsetY = 0;
mFixedOffsetY = mOffsetY;
- mOldHeight = 0;
+ mOldHeight = mMap->getHeightOffset(mX, mY);
mNeedPosUpdate = true;
}
}