fixed -1 to disable the revive timer does not work

This commit is contained in:
Glowbal 2015-07-09 13:02:48 +02:00
parent 86a8fb0b64
commit d3bed7aedb

View File

@ -49,7 +49,7 @@ if (((_reviveVal == 1 && {[_unit] call EFUNC(common,isPlayer)} || _reviveVal ==
_unit = _args select 0;
_startTime = _unit getvariable [QGVAR(reviveStartTime), 0];
if (ACE_time - _startTime > GVAR(maxReviveTime)) exitwith {
if (GVAR(maxReviveTime) > 0 && {ACE_time - _startTime > GVAR(maxReviveTime)}) exitwith {
[(_this select 1)] call cba_fnc_removePerFrameHandler;
_unit setvariable [QGVAR(inReviveState), nil, true];
_unit setvariable [QGVAR(reviveStartTime), nil];