summaryrefslogtreecommitdiff
path: root/src/flooritem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/flooritem.h')
-rw-r--r--src/flooritem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flooritem.h b/src/flooritem.h
index d8eaf1e6..0218999e 100644
--- a/src/flooritem.h
+++ b/src/flooritem.h
@@ -85,7 +85,8 @@ class FloorItem : public Sprite
*
* @see Sprite::getPixelY()
*/
- int getPixelY() const { return mY * 32 + 16; }
+ int getPixelY() const
+ { return mY * mMap->getTileHeight() + mMap->getTileHeight() / 2; }
/**
* Draws this floor item to the given graphics context.