Ensure movingToInjured is false whenever _target no longer needs healing, fixes #4797 (#4800)

This commit is contained in:
Skully71 2017-01-02 14:02:43 +01:00 committed by BaerMitUmlaut
parent 0c069a6bd2
commit 9b22f94374

View File

@ -29,6 +29,7 @@ if (isNull _target || {!alive _target} || {!(_target call FUNC(isInjured))}) exi
_this forceSpeed -1;
// return to formation instead of going where the injured unit was if it healed itself in the mean time
_this doFollow leader _this;
_this setVariable [QGVAR(movingToInjured), false];
#ifdef DEBUG_MODE_FULL
systemChat format ["%1 finished healing %2", _this, _target];