From 6a6b36fa2d19a6ea9d39b975354709e7ad82281d Mon Sep 17 00:00:00 2001 From: Bertram Date: Tue, 9 Feb 2010 02:54:09 +0100 Subject: Pushed away some 32 hardcoded values. --- src/flooritem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/flooritem.h') 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. -- cgit v1.2.3-60-g2f50