From b59f9cdb8f5ae20fa0ad21565705992851134e64 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Sep 2015 22:01:56 +0300 Subject: Fix random wrong y position if non local player moved on tiles with height > 0. --- src/being/being.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being/being.cpp') 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; } } -- cgit v1.2.3-70-g09d2