diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-08 00:17:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-08 00:17:45 +0300 |
commit | 593cccb16074fe9269dd2f278bd79859769eb1fd (patch) | |
tree | d8b3d93001021c59622ea88140dbbef8aee05013 /src/particleemitter.cpp | |
parent | b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (diff) | |
download | plus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.gz plus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.bz2 plus-593cccb16074fe9269dd2f278bd79859769eb1fd.tar.xz plus-593cccb16074fe9269dd2f278bd79859769eb1fd.zip |
Improve constructors in some classes.
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r-- | src/particleemitter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp index 026255c9f..2a303d4d1 100644 --- a/src/particleemitter.cpp +++ b/src/particleemitter.cpp @@ -42,10 +42,12 @@ ParticleEmitter::ParticleEmitter(const XmlNodePtr emitterNode, Particle *const target, Map *const map, const int rotation, const std::string& dyePalettes) : + mParticleFollow(false), mParticleTarget(target), mMap(map), mOutputPauseLeft(0), - mParticleImage(nullptr) + mParticleImage(nullptr), + mDeathEffectConditions(0) { // Initializing default values mParticlePosX.set(0.0f); @@ -57,7 +59,6 @@ ParticleEmitter::ParticleEmitter(const XmlNodePtr emitterNode, mParticleGravity.set(0.0f); mParticleRandomness.set(0); mParticleBounce.set(0.0f); - mParticleFollow = false; mParticleAcceleration.set(0.0f); mParticleDieDistance.set(-1.0f); mParticleMomentum.set(1.0f); |