diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-01 22:30:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-01 22:30:44 +0300 |
commit | d13de51121a332cf8613a38d7ed5468f971c999f (patch) | |
tree | 253c2911e291303fd90eb5d61c23076630782a11 /src/flooritem.cpp | |
parent | 6915c38ca9c35bfb9a5ea05fe957463d644a75de (diff) | |
download | plus-d13de51121a332cf8613a38d7ed5468f971c999f.tar.gz plus-d13de51121a332cf8613a38d7ed5468f971c999f.tar.bz2 plus-d13de51121a332cf8613a38d7ed5468f971c999f.tar.xz plus-d13de51121a332cf8613a38d7ed5468f971c999f.zip |
replace tile size from 32 to mapTitleSize.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r-- | src/flooritem.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp index c5a07a74d..81ffa67cc 100644 --- a/src/flooritem.cpp +++ b/src/flooritem.cpp @@ -66,8 +66,10 @@ FloorItem::FloorItem(const int id, const int itemId, const int x, const int y, subY = max; else if (subY < -max) subY = -max; - mPos.x = static_cast<float>(x * map->getTileWidth() + subX + 16 - 8); - mPos.y = static_cast<float>(y * map->getTileHeight() + subY + 32 - 8); + mPos.x = static_cast<float>(x * map->getTileWidth() + + subX + mapTileSize / 2 - 8); + mPos.y = static_cast<float>(y * map->getTileHeight() + + subY + mapTileSize - 8); } else { @@ -112,8 +114,8 @@ bool FloorItem::draw(Graphics *const graphics, font = gui->getFont(); if (mDropTime < curTime) { - const int dx = 32; - const int dy = 32; + const int dx = mapTileSize; + const int dy = mapTileSize; if (curTime > mDropTime + 28 && curTime < mDropTime + 50) { |