diff options
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp index a1163b1b7..5b7bd96bd 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -1818,16 +1818,11 @@ void Being::logic() restrict2 if (!xOffset && !yOffset) mNeedPosUpdate = false; -/* - mSortOffsetY = (mOldHeight * mapTileSize / 2) - + (mOffsetY * mapTileSize / 2) - * (mapTileSize - abs(offset)) / mapTileSize - mFixedOffsetY * mapTileSize / 2; - const int yOffset2 = yOffset - mSortOffsetY - mFixedOffsetY * mapTileSize / 2; -*/ const int halfTile = mapTileSize / 2; const float offset2 = static_cast<float>(mOffsetY * abs(offset)) / 2; - mSortOffsetY = (mOldHeight - mFixedOffsetY + mOffsetY) - * halfTile - offset2; +// mSortOffsetY = (mOldHeight - mFixedOffsetY + mOffsetY) +// * halfTile - offset2; + mSortOffsetY = 0; const float yOffset3 = (mY + 1) * mapTileSize + yOffset - (mOldHeight + mOffsetY) * halfTile + offset2; |