summaryrefslogtreecommitdiff
path: root/src/particleemitter.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2008-12-14 03:43:37 +0100
committerIra Rice <irarice@gmail.com>2008-12-14 09:13:39 -0700
commit712744c5c985a906891a41679adbe6468e82649b (patch)
treec6f49cd89cf84e00212ba655629465a6c8cf106b /src/particleemitter.cpp
parentae7cd9ca453aee25ccf1f4eb277ab77144910da5 (diff)
downloadmana-712744c5c985a906891a41679adbe6468e82649b.tar.gz
mana-712744c5c985a906891a41679adbe6468e82649b.tar.bz2
mana-712744c5c985a906891a41679adbe6468e82649b.tar.xz
mana-712744c5c985a906891a41679adbe6468e82649b.zip
Fixed follow-parent of nested and being-following particle emitters
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r--src/particleemitter.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp
index 03fe4672..d1ba92ca 100644
--- a/src/particleemitter.cpp
+++ b/src/particleemitter.cpp
@@ -360,12 +360,13 @@ ParticleEmitter::createParticles(int tick)
{
newParticle = new Particle(mMap);
}
+
+ Vector position;
+ position.x = mParticlePosX.value(tick);
+ position.y = mParticlePosY.value(tick);
+ position.z = mParticlePosZ.value(tick);
-
- newParticle->setPosition(
- mParticlePosX.value(tick),
- mParticlePosY.value(tick),
- mParticlePosZ.value(tick));
+ newParticle->moveTo(position);
float angleH = mParticleAngleHorizontal.value(tick);
float angleV = mParticleAngleVertical.value(tick);