summaryrefslogtreecommitdiff
path: root/src/particle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle.cpp')
-rw-r--r--src/particle.cpp6
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)