summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-28 13:52:32 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-28 13:52:32 +0300
commit58974e6733a39bd55b9511f0010e0a8b7cd49aa4 (patch)
tree6d8a62c7a87266353c8b4f65b4f16d759d6a8945 /src/being.cpp
parent83dc7593205d7d076fc38d307e2964a57157defc (diff)
downloadmanaplus-58974e6733a39bd55b9511f0010e0a8b7cd49aa4.tar.gz
manaplus-58974e6733a39bd55b9511f0010e0a8b7cd49aa4.tar.bz2
manaplus-58974e6733a39bd55b9511f0010e0a8b7cd49aa4.tar.xz
manaplus-58974e6733a39bd55b9511f0010e0a8b7cd49aa4.zip
Disable more particles if particle engine disabled.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index c57532fbf..22ce33f41 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1147,7 +1147,7 @@ void Being::setAction(const Action &action, const int attackId)
rotation = 270;
break;
}
- if (effectManager && effectId >= 0)
+ if (Particle::enabled && effectManager && effectId >= 0)
effectManager->trigger(effectId, this, rotation);
}
}
@@ -2780,8 +2780,11 @@ void Being::removeAfkEffect()
void Being::addSpecialEffect(const int effect)
{
- if (effectManager && !mSpecialParticle && effect != -1)
+ if (effectManager && Particle::enabled
+ && !mSpecialParticle && effect != -1)
+ {
mSpecialParticle = effectManager->triggerReturn(effect, this);
+ }
}
void Being::removeSpecialEffect()