summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-16 18:05:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-16 18:15:50 +0300
commitac65e2c9b72e35a9e5a1a84da57ecdbd41e5923e (patch)
tree0feb142dc738715d3216f0832f94ae4c3716fc30 /src/being/being.cpp
parent117c99ff5c8358624df6d176860ac64c86b6fa5f (diff)
downloadplus-ac65e2c9b72e35a9e5a1a84da57ecdbd41e5923e.tar.gz
plus-ac65e2c9b72e35a9e5a1a84da57ecdbd41e5923e.tar.bz2
plus-ac65e2c9b72e35a9e5a1a84da57ecdbd41e5923e.tar.xz
plus-ac65e2c9b72e35a9e5a1a84da57ecdbd41e5923e.zip
Split ParticleEngine from Particle class.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index ccd28c79f..b24f10ecd 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1498,7 +1498,7 @@ void Being::setAction(const BeingActionT &restrict action,
reset();
// attack particle effect
- if (Particle::enabled && effectManager)
+ if (ParticleEngine::enabled && effectManager)
{
const int effectId = mInfo->getAttack(attackId)->mEffectId;
if (effectId >= 0)
@@ -3879,7 +3879,7 @@ void Being::removeAfkEffect() restrict2
void Being::addSpecialEffect(const int effect) restrict2
{
if (effectManager &&
- Particle::enabled &&
+ ParticleEngine::enabled &&
!mSpecialParticle &&
effect != -1)
{
@@ -4179,7 +4179,8 @@ void Being::addItemParticles(const int id,
return;
// setup particle effects
- if (Particle::enabled && particleEngine)
+ if (ParticleEngine::enabled &&
+ particleEngine)
{
FOR_EACH (StringVectCIter, itr, display.particles)
{
@@ -4479,7 +4480,7 @@ void Being::setTrickDead(const bool b) restrict2
void Being::setSpiritBalls(const unsigned int balls) restrict2
{
- if (!Particle::enabled)
+ if (!ParticleEngine::enabled)
{
mSpiritBalls = balls;
return;