From dc3c5d595e60a8498e44affb8ec05b91709d34fc Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 14 Oct 2008 21:04:46 +0000 Subject: Early addition of a particle effect disabling option. Would like to change this in the future to update instantaneously. --- src/map.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/map.cpp') 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::iterator i = particleEffects.begin(); - i != particleEffects.end(); - i++ - ) + if (config.getValue("particleeffects", 1)) { - particleEngine->addEffect(i->file, i->x, i->y); + for (std::list::iterator i = particleEffects.begin(); + i != particleEffects.end(); + i++ + ) + { + particleEngine->addEffect(i->file, i->x, i->y); + } } } -- cgit v1.2.3-60-g2f50