summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/particle.cpp2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 50f34460..44f04ba1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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();