summaryrefslogtreecommitdiff
path: root/src/textparticle.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2010-10-17 17:15:21 +0200
committerPhilipp Sehmisch <mana@crushnet.org>2010-10-17 17:15:21 +0200
commit1b21442b5eb6dcc41a585715d07c73ed3ad59a1b (patch)
treec84f226695e1d7bb7d95fcba7c9e8c30333508da /src/textparticle.cpp
parent1f3c056323de16cbe5965e1d65a69eeab73396ce (diff)
downloadmana-client-1b21442b5eb6dcc41a585715d07c73ed3ad59a1b.tar.gz
mana-client-1b21442b5eb6dcc41a585715d07c73ed3ad59a1b.tar.bz2
mana-client-1b21442b5eb6dcc41a585715d07c73ed3ad59a1b.tar.xz
mana-client-1b21442b5eb6dcc41a585715d07c73ed3ad59a1b.zip
Added death effects to particle engine.
Every particle can now have a death effect. This is an effect which is created when the particle dies. Which death reasons (timeout, touching floor, touching sky, reaching target or deleted by external call) trigger the effect can also be specified. This is useful for exploding projectiles and many other effects. Reviewed-by: Bertram
Diffstat (limited to 'src/textparticle.cpp')
-rw-r--r--src/textparticle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textparticle.cpp b/src/textparticle.cpp
index 827343fa..e8d99dca 100644
--- a/src/textparticle.cpp
+++ b/src/textparticle.cpp
@@ -38,7 +38,7 @@ TextParticle::TextParticle(Map *map, const std::string &text,
bool TextParticle::draw(Graphics *graphics, int offsetX, int offsetY) const
{
- if (!mAlive)
+ if (!isAlive())
return false;
int screenX = (int) mPos.x + offsetX;