summaryrefslogtreecommitdiff
path: root/src/particle/textparticle.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/particle/textparticle.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/particle/textparticle.cpp')
-rw-r--r--src/particle/textparticle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/particle/textparticle.cpp b/src/particle/textparticle.cpp
index 0a1798c21..355102531 100644
--- a/src/particle/textparticle.cpp
+++ b/src/particle/textparticle.cpp
@@ -43,17 +43,17 @@ TextParticle::TextParticle(const std::string &text,
{
}
-bool TextParticle::draw(Graphics *const graphics,
+void TextParticle::draw(Graphics *const graphics,
const int offsetX, const int offsetY) const
{
if (!mColor || !mTextFont)
- return false;
+ return;
BLOCK_START("TextParticle::draw")
if (!isAlive())
{
BLOCK_END("TextParticle::draw")
- return false;
+ return;
}
const int screenX = static_cast<int>(mPos.x) + offsetX;
@@ -85,5 +85,5 @@ bool TextParticle::draw(Graphics *const graphics,
}
mTextFont->drawString(graphics, mText, screenX - mTextWidth, screenY);
BLOCK_END("TextParticle::draw")
- return true;
+ return;
}