Fixes #2156 Animation is still played even if you cancel any treatment

This commit is contained in:
Glowbal 2015-09-05 11:04:11 +02:00
parent 4c0c7bc290
commit 3d342ece20
2 changed files with 2 additions and 3 deletions

View File

@ -35,8 +35,7 @@ if (vehicle _caller == _caller) then {
case "ainvppnemstpslaywpstdnon_medic": {_lastAnim = "AinvPpneMstpSlayWpstDnon"};
case "ainvpknlmstpslaywpstdnon_medic": {_lastAnim = "AmovPknlMstpSrasWpstDnon"};
};
[_caller, _lastAnim, 1] call EFUNC(common,doAnimation);
[_caller, _lastAnim, 1] call EFUNC(common,doAnimation);
[_caller, _lastAnim, 2] call EFUNC(common,doAnimation);
};
_caller setvariable [QGVAR(treatmentPrevAnimCaller), nil];

View File

@ -35,7 +35,7 @@ if (vehicle _caller == _caller) then {
case "ainvppnemstpslaywpstdnon_medic": {_lastAnim = "AinvPpneMstpSlayWpstDnon"};
case "ainvpknlmstpslaywpstdnon_medic": {_lastAnim = "AmovPknlMstpSrasWpstDnon"};
};
[_caller, _lastAnim, 1] call EFUNC(common,doAnimation);
[_caller, _lastAnim, 2] call EFUNC(common,doAnimation);
};
_caller setvariable [QGVAR(treatmentPrevAnimCaller), nil];