summaryrefslogtreecommitdiff
path: root/src/flooritem.h
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-02-09 02:54:09 +0100
committerBertram <bertram@cegetel.net>2010-02-09 03:20:48 +0100
commit6a6b36fa2d19a6ea9d39b975354709e7ad82281d (patch)
tree09451c98d6a711ffd45a7f5da5796549dbcdd173 /src/flooritem.h
parentf3ee70f4aa0b4df7388a4539440355bb066dc0d3 (diff)
downloadmana-6a6b36fa2d19a6ea9d39b975354709e7ad82281d.tar.gz
mana-6a6b36fa2d19a6ea9d39b975354709e7ad82281d.tar.bz2
mana-6a6b36fa2d19a6ea9d39b975354709e7ad82281d.tar.xz
mana-6a6b36fa2d19a6ea9d39b975354709e7ad82281d.zip
Pushed away some 32 hardcoded values.
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.