diff options
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index 78db2a58..42ec84d7 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -31,6 +31,7 @@ #include "map.h" #include "particle.h" #include "particleemitter.h" +#include "rotationalparticle.h" #include "textparticle.h" #include "resources/resourcemanager.h" @@ -222,7 +223,6 @@ bool Particle::update() p = mChildParticles.erase(p); } } - if (!mAlive && mChildParticles.empty() && mAutoDelete) { return false; @@ -280,6 +280,11 @@ Particle *Particle::addEffect(const std::string &particleEffectFile, { newParticle = new AnimationParticle(mMap, node); } + // Rotational + else if ((node = XML::findFirstChildByName(effectChildNode, "rotation"))) + { + newParticle = new RotationalParticle(mMap, node); + } // Image else if ((node = XML::findFirstChildByName(effectChildNode, "image"))) { |