diff options
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r-- | src/being/compoundsprite.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp index b0442d055..ef489c166 100644 --- a/src/being/compoundsprite.cpp +++ b/src/being/compoundsprite.cpp @@ -111,7 +111,7 @@ bool CompoundSprite::update(const int time) return ret; } -bool CompoundSprite::draw(Graphics *const graphics, +void CompoundSprite::draw(Graphics *const graphics, const int posX, const int posY) const { FUNC_BLOCK("CompoundSprite::draw", 1) @@ -119,25 +119,22 @@ bool CompoundSprite::draw(Graphics *const graphics, updateImages(); if (mSprites.empty()) // Nothing to draw - return false; + return; if (mAlpha == 1.0F && mImage) { DRAW_IMAGE(graphics, mImage, posX + mOffsetX, posY + mOffsetY); - return true; } else if (mAlpha && mAlphaImage) { mAlphaImage->setAlpha(mAlpha); DRAW_IMAGE(graphics, mAlphaImage, posX + mOffsetX, posY + mOffsetY); - return true; } else { drawSprites(graphics, posX, posY); } - return false; } void CompoundSprite::drawSprites(Graphics *const graphics, |