summaryrefslogtreecommitdiff
path: root/src/particle.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-05-28 16:51:26 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-05-28 16:51:26 +0000
commitb4bf0aba860093121dff7f469d4cd19a578a9c09 (patch)
tree095bfc9ab2f8011099cf64411f192fa38d1ab535 /src/particle.cpp
parent7f9c54c79c1bd7e7e2cd7b5f7dd0373d831bc8a8 (diff)
downloadmana-client-b4bf0aba860093121dff7f469d4cd19a578a9c09.tar.gz
mana-client-b4bf0aba860093121dff7f469d4cd19a578a9c09.tar.bz2
mana-client-b4bf0aba860093121dff7f469d4cd19a578a9c09.tar.xz
mana-client-b4bf0aba860093121dff7f469d4cd19a578a9c09.zip
Changed the way particle emitter skip is handled to make linear and circular emitters work with particleEmitterSkip enabled.
Diffstat (limited to 'src/particle.cpp')
-rw-r--r--src/particle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particle.cpp b/src/particle.cpp
index f58a26f1..355b7069 100644
--- a/src/particle.cpp
+++ b/src/particle.cpp
@@ -170,7 +170,7 @@ Particle::update()
}
// Update child emitters
- if (mLifetimePast%Particle::emitterSkip == 0)
+ if ((mLifetimePast-1)%Particle::emitterSkip == 0)
{
for ( EmitterIterator e = mChildEmitters.begin();
e != mChildEmitters.end();