diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-14 21:04:46 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-14 21:04:46 +0000 |
commit | dc3c5d595e60a8498e44affb8ec05b91709d34fc (patch) | |
tree | 15dabb6da28bb2f30694f761cb301e2b8b312576 /src/map.cpp | |
parent | fc8760599dfd730d416bb2c646e17c5dd7dd132e (diff) | |
download | mana-dc3c5d595e60a8498e44affb8ec05b91709d34fc.tar.gz mana-dc3c5d595e60a8498e44affb8ec05b91709d34fc.tar.bz2 mana-dc3c5d595e60a8498e44affb8ec05b91709d34fc.tar.xz mana-dc3c5d595e60a8498e44affb8ec05b91709d34fc.zip |
Early addition of a particle effect disabling option. Would like to
change this in the future to update instantaneously.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/map.cpp b/src/map.cpp index 3adc3498..f9454187 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -504,11 +504,14 @@ void Map::addParticleEffect(const std::string &effectFile, int x, int y) void Map::initializeParticleEffects(Particle* particleEngine) { - for (std::list<ParticleEffectData>::iterator i = particleEffects.begin(); - i != particleEffects.end(); - i++ - ) + if (config.getValue("particleeffects", 1)) { - particleEngine->addEffect(i->file, i->x, i->y); + for (std::list<ParticleEffectData>::iterator i = particleEffects.begin(); + i != particleEffects.end(); + i++ + ) + { + particleEngine->addEffect(i->file, i->x, i->y); + } } } |