From 1b21442b5eb6dcc41a585715d07c73ed3ad59a1b Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sun, 17 Oct 2010 17:15:21 +0200 Subject: 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 --- src/textparticle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/textparticle.cpp') 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; -- cgit v1.2.3-60-g2f50