diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-14 17:18:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-14 17:18:04 +0300 |
commit | 36de2c64d6bba077775360c9c0d681f0a096ffc3 (patch) | |
tree | e505ba9337b4eabb73d4d37cdc15d6e7c1f91727 /src/particle/imageparticle.cpp | |
parent | d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1 (diff) | |
download | manaplus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.gz manaplus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.bz2 manaplus-36de2c64d6bba077775360c9c0d681f0a096ffc3.tar.xz manaplus-36de2c64d6bba077775360c9c0d681f0a096ffc3.zip |
chnage return values for draw functions from bool to void.
Diffstat (limited to 'src/particle/imageparticle.cpp')
-rw-r--r-- | src/particle/imageparticle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<int>(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; } |