From 4aa184df5a208c51cb0141ae6a609c60294d8323 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jul 2016 22:19:49 +0300 Subject: Rename StatusEffect::getParticle into StatusEffect::getStartParticle --- src/being/actorsprite.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/being') diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp index 7007d52aa..d5527f161 100644 --- a/src/being/actorsprite.cpp +++ b/src/being/actorsprite.cpp @@ -384,13 +384,15 @@ void ActorSprite::handleStatusEffect(const StatusEffect *const effect, if (effectId >= 0) { + Particle *particle = nullptr; if (start == IsStart_true) { - Particle *const particle = effect->getParticle(); - mStatusParticleEffects.setLocally(effectId, particle); + particle = effect->getStartParticle(); } // +++ here also need enable permanent status effects, // need new field in StatusEffect + if (particle) + mStatusParticleEffects.setLocally(effectId, particle); } } -- cgit v1.2.3-70-g09d2