summaryrefslogtreecommitdiff
path: root/src/flooritem.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-27 22:08:14 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-28 18:30:52 +0300
commit4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687 (patch)
tree5f22bc4e9829f72f3439655f4ffa54770689de82 /src/flooritem.cpp
parent192af63cd2d63e06172c1d42ed096af33188fd61 (diff)
downloadplus-4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687.tar.gz
plus-4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687.tar.bz2
plus-4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687.tar.xz
plus-4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687.zip
Remove some virtual methods in actorsprite and being.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r--src/flooritem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/flooritem.cpp b/src/flooritem.cpp
index 1976574ab..3019dca02 100644
--- a/src/flooritem.cpp
+++ b/src/flooritem.cpp
@@ -144,7 +144,10 @@ bool FloorItem::draw(Graphics *const graphics,
}
}
- const bool res = ActorSprite::draw(graphics, offsetX, offsetY);
+ const int px = getActorX() + offsetX;
+ const int py = getActorY() + offsetY;
+ ActorSprite::draw1(graphics, px, py);
+ const bool res = CompoundSprite::draw(graphics, px, py);
if (mHighlight)
{