diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-24 22:01:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-24 22:01:56 +0300 |
commit | b59f9cdb8f5ae20fa0ad21565705992851134e64 (patch) | |
tree | 872ab45ca83515bfe123cc320bd33ae393de0f69 /src/being | |
parent | 3ed7e4306f57e147c050d47bdb4abc5ea41c5797 (diff) | |
download | manaplus-b59f9cdb8f5ae20fa0ad21565705992851134e64.tar.gz manaplus-b59f9cdb8f5ae20fa0ad21565705992851134e64.tar.bz2 manaplus-b59f9cdb8f5ae20fa0ad21565705992851134e64.tar.xz manaplus-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.cpp | 4 |
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; } } |