From f862b7ecb1fc9c410a693eac0accf5081830ab5e Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Wed, 16 Dec 2009 18:49:09 +0100 Subject: Stored the cached config value which says if non-crucial particle effects are enabled or not in a static member of class Particle instead of an instanced member of Being. --- src/monster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/monster.cpp') diff --git a/src/monster.cpp b/src/monster.cpp index cc2285fe..34390982 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -53,7 +53,7 @@ Monster::Monster(int id, int job, Map *map): mSprites.push_back(AnimatedSprite::load("graphics/sprites/error.xml")); } - if (mParticleEffects) + if (Particle::enabled) { const std::list &particleEffects = info.getParticleEffects(); for (std::list::const_iterator i = particleEffects.begin(); @@ -106,7 +106,7 @@ void Monster::setAction(Action action, int attackType) //attack particle effect particleEffect = getInfo().getAttackParticleEffect(attackType); - if (!particleEffect.empty() && mParticleEffects) + if (!particleEffect.empty() && Particle::enabled) { switch (mSpriteDirection) { -- cgit v1.2.3-70-g09d2