From 4c2ec5447b30fad29bf8b6205db9b492cc755da7 Mon Sep 17 00:00:00 2001 From: Salbei Date: Tue, 9 Apr 2019 13:56:51 +0200 Subject: [PATCH] Update fn_toggleDuiHud.sqf --- addons/screenshotMode/functions/fn_toggleDuiHud.sqf | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/addons/screenshotMode/functions/fn_toggleDuiHud.sqf b/addons/screenshotMode/functions/fn_toggleDuiHud.sqf index 487c838b..e8397d8c 100644 --- a/addons/screenshotMode/functions/fn_toggleDuiHud.sqf +++ b/addons/screenshotMode/functions/fn_toggleDuiHud.sqf @@ -1,7 +1,4 @@ params ["_stateChange"]; -if (_stateChange) then { - diwako_dui_main_toggled_off = true; -}else{ - diwako_dui_main_toggled_off = false; -}; +diwako_dui_main_toggled_off = !_stateChange; +