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 | |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/particle.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2008-05-28 Philipp Sehmisch <tmw@crushnet.org> + + * src/particle.cpp: Changed the way particle emitter skip is handled to + make linear and circular emitters work with particleEmitterSkip enabled. + 2008-05-28 Dennis Friis <peavey@placid.dk> * src/being.cpp: Change order of direction to up/down/right/left in 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(); |