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/particle/imageparticle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/particle/imageparticle.cpp') diff --git a/src/particle/imageparticle.cpp b/src/particle/imageparticle.cpp index 0654b3c6f..fa96f5962 100644 --- a/src/particle/imageparticle.cpp +++ b/src/particle/imageparticle.cpp @@ -67,12 +67,12 @@ ImageParticle::~ImageParticle() } } -bool ImageParticle::draw(Graphics *const graphics, +void ImageParticle::draw(Graphics *const graphics, const int offsetX, const int offsetY) const { FUNC_BLOCK("ImageParticle::draw", 1) if (mAlive != ALIVE || !mImage) - return false; + return; const int screenX = static_cast(mPos.x) + offsetX - mImage->mBounds.w / 2; @@ -85,7 +85,7 @@ bool ImageParticle::draw(Graphics *const graphics, screenY + mImage->mBounds.h < 0 || screenY > graphics->mHeight) { - return false; + return; } float alphafactor = mAlpha; @@ -104,5 +104,5 @@ bool ImageParticle::draw(Graphics *const graphics, mImage->setAlpha(alphafactor); DRAW_IMAGE(graphics, mImage, screenX, screenY); - return true; + return; } -- cgit v1.2.3-60-g2f50