From b4bf0aba860093121dff7f469d4cd19a578a9c09 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Wed, 28 May 2008 16:51:26 +0000 Subject: Changed the way particle emitter skip is handled to make linear and circular emitters work with particleEmitterSkip enabled. --- ChangeLog | 5 +++++ src/particle.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 50f34460..44f04ba1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-28 Philipp Sehmisch + + * 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 * 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(); -- cgit v1.2.3-70-g09d2