diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-11-03 22:02:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-11-03 22:02:45 +0300 |
commit | cb6572ebd60ecc525c5a236a26eefc673841f056 (patch) | |
tree | d1306ba343d2fef4c5a5fceda529774a0bdc5cda | |
parent | 26a5e61ecf182e06ff2c6a0750ddbd81a944b6fd (diff) | |
download | mv-cb6572ebd60ecc525c5a236a26eefc673841f056.tar.gz mv-cb6572ebd60ecc525c5a236a26eefc673841f056.tar.bz2 mv-cb6572ebd60ecc525c5a236a26eefc673841f056.tar.xz mv-cb6572ebd60ecc525c5a236a26eefc673841f056.zip |
Fix legacy status effects with block-id.
This effects must be removed from all servers, because in future
support for block-id will be completly removed.
-rw-r--r-- | src/being/actorsprite.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp index c6346c721..cd8867194 100644 --- a/src/being/actorsprite.cpp +++ b/src/being/actorsprite.cpp @@ -218,6 +218,7 @@ void ActorSprite::setStatusEffect(const int32_t index, } } +// function for legacy configs only. Must be removed in future void ActorSprite::setStatusEffectBlock(const int offset, const uint16_t newEffects) { @@ -231,7 +232,7 @@ void ActorSprite::setStatusEffectBlock(const int offset, { setStatusEffect(index, fromBool(val, Enable), - IsStart_false); + IsStart_true); } else if (val && config.getBoolValue("unimplimentedLog")) { |