diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-05-28 16:51:26 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-05-28 16:51:26 +0000 |
commit | b4bf0aba860093121dff7f469d4cd19a578a9c09 (patch) | |
tree | 095bfc9ab2f8011099cf64411f192fa38d1ab535 /src/particle.cpp | |
parent | 7f9c54c79c1bd7e7e2cd7b5f7dd0373d831bc8a8 (diff) | |
download | mana-b4bf0aba860093121dff7f469d4cd19a578a9c09.tar.gz mana-b4bf0aba860093121dff7f469d4cd19a578a9c09.tar.bz2 mana-b4bf0aba860093121dff7f469d4cd19a578a9c09.tar.xz mana-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.cpp | 2 |
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(); |