diff options
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index 3e958417..3062de51 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -237,12 +237,8 @@ bool Particle::update() p = mChildParticles.erase(p); } } - if (mAlive != ALIVE && mChildParticles.empty() && mAutoDelete) - { - return false; - } - return true; + return !(mAlive != ALIVE && mChildParticles.empty() && mAutoDelete); } void Particle::moveBy(const Vector &change) |