From 737f1ef7ee9dcc3053592bf103e1ba96b17fc760 Mon Sep 17 00:00:00 2001 From: IndigoFox Date: Sat, 24 Feb 2024 19:45:55 -0800 Subject: [PATCH] skip respawn button log if no last uncon timer registered --- framework/client/functions/fn_logRespawnButtonUse.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,