diff --git a/framework/client/functions/fn_logRespawnButtonUse.sqf b/framework/client/functions/fn_logRespawnButtonUse.sqf index ec085e6..8d350a0 100644 --- a/framework/client/functions/fn_logRespawnButtonUse.sqf +++ b/framework/client/functions/fn_logRespawnButtonUse.sqf @@ -12,9 +12,9 @@ if ( !hasInterface ) exitWith {}; if (_causeOfDeath != "respawn_button") exitWith {}; private _timeWentUnconscious = _unit getVariable [QGVARMAIN(lastTimeKnockedOut), -1]; private _durationSpentUnconscious = -1; - if (_timeWentUnconscious != -1) then { - _durationSpentUnconscious = diag_tickTime - _timeWentUnconscious; - }; + if (_timeWentUnconscious isEqualTo -1) exitWith {}; + + _durationSpentUnconscious = diag_tickTime - _timeWentUnconscious; [ LEVEL_INFO,