fix some code was commented out in loadPersonLocal and unloadPersonLocal

This commit is contained in:
commy2 2015-09-25 11:15:25 +02:00
parent 24f0df55a2
commit 412685e0ff
2 changed files with 4 additions and 7 deletions

View File

@ -41,8 +41,7 @@ if (_slotsOpen) then {
_vehicle setVariable [QGVAR(loaded_persons), _loaded, true];
// @todo never used. Remove?
/*if !([_unit] call FUNC(isAwake)) then {
if !([_unit] call FUNC(isAwake)) then {
[{
(_this select 0) params ["_unit", "_vehicle"];
@ -60,5 +59,5 @@ if (_slotsOpen) then {
[_this select 1] call CBA_fnc_removePerFrameHandler;
}, 0.5, [_unit, _vehicle]] call CBA_fnc_addPerFrameHandler;
};*/
};
};

View File

@ -73,9 +73,7 @@ _unit action ["Eject", vehicle _unit];
_unit setPosASL AGLToASL _emptyPos;
// @todo never used. Remove?
/*if !([_unit] call FUNC(isAwake)) then {
if !([_unit] call FUNC(isAwake)) then {
TRACE_1("Check if isAwake", [_unit] call FUNC(isAwake));
if (driver _unit == _unit) then {
@ -92,7 +90,7 @@ _unit action ["Eject", vehicle _unit];
};
}, [_unit, _anim], 0.5, 0] call FUNC(waitAndExecute);
};
};*/
};
}, [_unit, _emptyPos], 0.5, 0] call FUNC(waitAndExecute);
[_unit, false, GROUP_SWITCH_ID, side group _unit] call FUNC(switchToGroupSide);