summaryrefslogtreecommitdiff
path: root/src/being/compoundsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-14 17:18:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-14 17:18:04 +0300
commit36de2c64d6bba077775360c9c0d681f0a096ffc3 (patch)
treee505ba9337b4eabb73d4d37cdc15d6e7c1f91727 /src/being/compoundsprite.cpp
parentd9a77eb8ac5d507665cbf8b20f5d8187148ebfd1 (diff)
downloadManaVerse-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.gz
ManaVerse-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.bz2
ManaVerse-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.xz
ManaVerse-36de2c64d6bba077775360c9c0d681f0a096ffc3.zip
chnage return values for draw functions from bool to void.
Diffstat (limited to 'src/being/compoundsprite.cpp')
-rw-r--r--src/being/compoundsprite.cpp7
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,