From 8a50f7e82924f43834c292c90da7f00766df1790 Mon Sep 17 00:00:00 2001 From: Timi007 Date: Thu, 8 Feb 2024 17:39:01 +0100 Subject: [PATCH] Optimize if --- addons/markers/functions/fnc_createMarkerLocal.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/markers/functions/fnc_createMarkerLocal.sqf b/addons/markers/functions/fnc_createMarkerLocal.sqf index ba4859a..3c6efa0 100644 --- a/addons/markers/functions/fnc_createMarkerLocal.sqf +++ b/addons/markers/functions/fnc_createMarkerLocal.sqf @@ -139,7 +139,7 @@ if (_direction isEqualTo "" && _isHq) then { // Direction of Movement Arrow if (_direction isNotEqualTo "") then { - private _mod = if (_isHq) then { "dir_hq" } else { "dir" }; + private _mod = ["dir", "dir_hq"] select _isHq; private _markerName = format ["%1_%2_%3", _namePrefix, _mod, _direction]; private _markerType = format ["mts_%1_%2_%3", _identity, _mod, _direction];