diff options
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index 1523c10a0..2bfaf02b7 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -1427,13 +1427,18 @@ void Being::logic() if (mAction == BeingAction::MOVE || mNeedPosUpdate) { - mNeedPosUpdate = false; const int xOffset = getXOffset(); const int yOffset = getYOffset(); int offset = xOffset; if (!offset) offset = yOffset; + if (!xOffset && !yOffset) + { + mNeedPosUpdate = false; + logger->log("reset"); + } + mSortOffsetY = (mOldHeight * mapTileSize / 2) + (mOffsetY * mapTileSize / 2) * (mapTileSize - abs(offset)) / mapTileSize; |