summaryrefslogtreecommitdiff
path: root/src/particleemitter.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-23 00:10:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-23 00:10:43 +0300
commitd97189f055798b5b2051c1c5770a3def62747461 (patch)
treed66a891dba33d2ce1c882e0de7d6145bb2e0326b /src/particleemitter.cpp
parent25dce1399e40f24809842303d48ef090439de1e5 (diff)
downloadmv-d97189f055798b5b2051c1c5770a3def62747461.tar.gz
mv-d97189f055798b5b2051c1c5770a3def62747461.tar.bz2
mv-d97189f055798b5b2051c1c5770a3def62747461.tar.xz
mv-d97189f055798b5b2051c1c5770a3def62747461.zip
Improve perfomance in some object constructors.
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r--src/particleemitter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp
index 4ba8c9c6b..918f25570 100644
--- a/src/particleemitter.cpp
+++ b/src/particleemitter.cpp
@@ -41,13 +41,12 @@
ParticleEmitter::ParticleEmitter(XmlNodePtr emitterNode, Particle *target,
Map *map, int rotation,
- const std::string& dyePalettes):
+ const std::string& dyePalettes) :
+ mParticleTarget(target),
+ mMap(map),
mOutputPauseLeft(0),
mParticleImage(nullptr)
{
- mMap = map;
- mParticleTarget = target;
-
// Initializing default values
mParticlePosX.set(0.0f);
mParticlePosY.set(0.0f);