diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-10 22:19:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-10 22:22:53 +0300 |
commit | 4aa184df5a208c51cb0141ae6a609c60294d8323 (patch) | |
tree | 35d8be02657f234ac2803c2cd3f4c30780e237ac /src/being | |
parent | f9a7f96525c7485de4cf27f973f0b52f5d74f048 (diff) | |
download | mv-4aa184df5a208c51cb0141ae6a609c60294d8323.tar.gz mv-4aa184df5a208c51cb0141ae6a609c60294d8323.tar.bz2 mv-4aa184df5a208c51cb0141ae6a609c60294d8323.tar.xz mv-4aa184df5a208c51cb0141ae6a609c60294d8323.zip |
Rename StatusEffect::getParticle into StatusEffect::getStartParticle
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/actorsprite.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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); } } |