Fix unconscious handlers run globally (#5504)

This commit is contained in:
Dystopian 2017-09-13 01:10:49 +02:00 committed by PabstMirror
parent 9cce08f152
commit e103805f00
4 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,8 @@
params ["_unit"];
if (!local _unit) exitWith {};
if (_unit getVariable [QGVAR(isDeploying), false]) then {
[_unit] call FUNC(deployCancel);
};

View File

@ -17,6 +17,8 @@
params ["_unit"];
if (!local _unit) exitWith {};
if (!isNull (GETMVAR(ladder,objNull)) && {GVAR(ladder) in attachedObjects _unit}) then {
[_unit, GVAR(ladder)] call FUNC(cancelTLdeploy);
};

View File

@ -17,6 +17,8 @@
params ["_unit"];
if (!local _unit) exitWith {};
if (_unit getVariable [QGVAR(isPlacing), false]) then {
[_unit] call FUNC(placeCancel);
};

View File

@ -17,6 +17,8 @@
params ["_unit"];
if (!local _unit) exitWith {};
if (_unit getVariable [QGVAR(adjusting), false]) then {
_unit setVariable [QGVAR(adjusting), false, true];
};