diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-06-03 17:42:54 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-06-03 17:42:54 +0000 |
commit | 778ca33725a8bfac629b405f0bd26cfefaf47caf (patch) | |
tree | 0b20376964c8b60f30c2827b1790cb038740a00b /src/particle.cpp | |
parent | 6276c1ff96e449e73e84977110334cd8957c31b6 (diff) | |
download | mana-778ca33725a8bfac629b405f0bd26cfefaf47caf.tar.gz mana-778ca33725a8bfac629b405f0bd26cfefaf47caf.tar.bz2 mana-778ca33725a8bfac629b405f0bd26cfefaf47caf.tar.xz mana-778ca33725a8bfac629b405f0bd26cfefaf47caf.zip |
Have ParticleEmitter load a possible particle image early on and don't cause a
crash when the image can't be found.
Diffstat (limited to 'src/particle.cpp')
-rw-r--r-- | src/particle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particle.cpp b/src/particle.cpp index f88b9c21..509c20ee 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -48,7 +48,7 @@ int Particle::fastPhysics = 0; int Particle::emitterSkip = 1; const float Particle::PARTICLE_SKY = 800.0f; -Particle::Particle(Map *map) : +Particle::Particle(Map *map): mAlive(true), mPosX(0.0f), mPosY(0.0f), mPosZ(0.0f), mLifetimeLeft(-1), |