Skip to content

Commit

Permalink
Optimize if
Browse files Browse the repository at this point in the history
  • Loading branch information
Timi007 committed Feb 8, 2024
1 parent f7f6465 commit 8a50f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/markers/functions/fnc_createMarkerLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 8a50f7e

Please sign in to comment.