diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-27 22:08:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-28 18:30:52 +0300 |
commit | 4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687 (patch) | |
tree | 5f22bc4e9829f72f3439655f4ffa54770689de82 /src/flooritem.cpp | |
parent | 192af63cd2d63e06172c1d42ed096af33188fd61 (diff) | |
download | manaverse-4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687.tar.gz manaverse-4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687.tar.bz2 manaverse-4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687.tar.xz manaverse-4c35aa61a7cdb9897bd0ef5e2f7624a5eccaa687.zip |
Remove some virtual methods in actorsprite and being.
Diffstat (limited to 'src/flooritem.cpp')
-rw-r--r-- | src/flooritem.cpp | 5 |
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) { |