summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-11-03 22:02:45 +0300
committerAndrei Karas <akaras@inbox.ru>2016-11-03 22:02:45 +0300
commitcb6572ebd60ecc525c5a236a26eefc673841f056 (patch)
treed1306ba343d2fef4c5a5fceda529774a0bdc5cda
parent26a5e61ecf182e06ff2c6a0750ddbd81a944b6fd (diff)
downloadplus-cb6572ebd60ecc525c5a236a26eefc673841f056.tar.gz
plus-cb6572ebd60ecc525c5a236a26eefc673841f056.tar.bz2
plus-cb6572ebd60ecc525c5a236a26eefc673841f056.tar.xz
plus-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.cpp3
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"))
{