summaryrefslogtreecommitdiff
path: root/src/simpleanimation.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/simpleanimation.cpp
parentd9a77eb8ac5d507665cbf8b20f5d8187148ebfd1 (diff)
downloadplus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.gz
plus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.bz2
plus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.xz
plus-36de2c64d6bba077775360c9c0d681f0a096ffc3.zip
chnage return values for draw functions from bool to void.
Diffstat (limited to 'src/simpleanimation.cpp')
-rw-r--r--src/simpleanimation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/simpleanimation.cpp b/src/simpleanimation.cpp
index b1efc16e5..77e84d835 100644
--- a/src/simpleanimation.cpp
+++ b/src/simpleanimation.cpp
@@ -72,16 +72,15 @@ SimpleAnimation::~SimpleAnimation()
}
}
-bool SimpleAnimation::draw(Graphics *const graphics,
+void SimpleAnimation::draw(Graphics *const graphics,
const int posX, const int posY) const
{
FUNC_BLOCK("SimpleAnimation::draw", 1)
if (!mCurrentFrame || !mCurrentFrame->image)
- return false;
+ return;
DRAW_IMAGE(graphics, mCurrentFrame->image,
posX + mCurrentFrame->offsetX, posY + mCurrentFrame->offsetY);
- return true;
}
void SimpleAnimation::reset()