summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index be8db4058..0f47011c1 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2253,7 +2253,12 @@ bool Being::draw(Graphics *const graphics,
{
bool res = true;
if (!mErased)
- res = ActorSprite::draw(graphics, offsetX, offsetY);
+ {
+ const int px = getActorX() + offsetX;
+ const int py = getActorY() + offsetY;
+ ActorSprite::draw1(graphics, px, py);
+ res = drawSpriteAt(graphics, px, py);
+ }
return res;
}
@@ -2296,10 +2301,7 @@ void Being::drawSpritesSDL(Graphics *const graphics,
bool Being::drawSpriteAt(Graphics *const graphics,
const int x, const int y) const
{
- bool res = true;
-
- if (!mErased)
- res = ActorSprite::drawSpriteAt(graphics, x, y);
+ bool res = CompoundSprite::draw(graphics, x, y);
if (!userPalette)
return res;