summaryrefslogtreecommitdiff
path: root/src/particleemitter.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2008-12-14 04:47:18 +0100
committerIra Rice <irarice@gmail.com>2008-12-14 09:15:39 -0700
commit86f666f90322f5d39aa5d0f0ad973e1df8f744d3 (patch)
tree4e6cf7068960ad6bf33665ed687a36d375afc4eb /src/particleemitter.cpp
parent712744c5c985a906891a41679adbe6468e82649b (diff)
downloadmana-86f666f90322f5d39aa5d0f0ad973e1df8f744d3.tar.gz
mana-86f666f90322f5d39aa5d0f0ad973e1df8f744d3.tar.bz2
mana-86f666f90322f5d39aa5d0f0ad973e1df8f744d3.tar.xz
mana-86f666f90322f5d39aa5d0f0ad973e1df8f744d3.zip
Some systactical sugar for 864e33
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r--src/particleemitter.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp
index d1ba92ca..2a4e4c8a 100644
--- a/src/particleemitter.cpp
+++ b/src/particleemitter.cpp
@@ -361,11 +361,9 @@ 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);
-
+ Vector position(mParticlePosX.value(tick),
+ mParticlePosY.value(tick),
+ mParticlePosZ.value(tick));
newParticle->moveTo(position);
float angleH = mParticleAngleHorizontal.value(tick);