diff options
author | Bertram <bertram@cegetel.net> | 2010-02-09 02:54:09 +0100 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-02-09 03:20:48 +0100 |
commit | 6a6b36fa2d19a6ea9d39b975354709e7ad82281d (patch) | |
tree | 09451c98d6a711ffd45a7f5da5796549dbcdd173 /src/flooritem.cpp | |
parent | f3ee70f4aa0b4df7388a4539440355bb066dc0d3 (diff) | |
download | mana-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.cpp')
-rw-r--r-- | src/flooritem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp index db779ad4..2c6d81c4 100644 --- a/src/flooritem.cpp +++ b/src/flooritem.cpp @@ -73,6 +73,7 @@ void FloorItem::draw(Graphics *graphics, int offsetX, int offsetY) const if (mAlpha != image->getAlpha()) image->setAlpha(mAlpha); - graphics->drawImage(image, mX * 32 + offsetX, mY * 32 + offsetY); + graphics->drawImage(image, mX * mMap->getTileWidth() + offsetX, + mY * mMap->getTileHeight() + offsetY); } } |