summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-22 04:17:58 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-22 04:17:58 +0300
commit5448377e2a38bf1186f17d9ae035cbcc68b9dc11 (patch)
treebf0f719dcf960222c2dde2cb07b18487d3b7002c /src/being/being.cpp
parentf95e58406341d5672048ed9dca293beea9ee6b2c (diff)
downloadmv-5448377e2a38bf1186f17d9ae035cbcc68b9dc11.tar.gz
mv-5448377e2a38bf1186f17d9ae035cbcc68b9dc11.tar.bz2
mv-5448377e2a38bf1186f17d9ae035cbcc68b9dc11.tar.xz
mv-5448377e2a38bf1186f17d9ae035cbcc68b9dc11.zip
Dont calculate dynamic sort offset.
Probably it should be removed.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp11
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;