From 36de2c64d6bba077775360c9c0d681f0a096ffc3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Dec 2013 17:18:04 +0300 Subject: chnage return values for draw functions from bool to void. --- src/simpleanimation.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/simpleanimation.cpp') 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() -- cgit v1.2.3-60-g2f50