summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp
index c5a031fe..8805ba88 100644
--- a/src/flooritem.cpp
+++ b/src/flooritem.cpp
@@ -38,11 +38,7 @@ FloorItem::FloorItem(int id,
{
setMap(map);
- // TODO: Eventually, we probably should fix all sprite offsets so that
- // these translations aren't necessary anymore. The sprites know
- // best where their base point should be.
- mPos.x = x * map->getTileWidth() + 16;
- mPos.y = y * map->getTileHeight() + 16;
+ mPos = map->getTileCenter(x, y);
setupSpriteDisplay(itemDb->get(itemId).getDisplay());
}