From c5a9ea53553647413bba2e3948011a3f554f785a Mon Sep 17 00:00:00 2001 From: ante <49555217+ante185@users.noreply.github.com> Date: Sun, 17 Dec 2023 21:56:43 +0100 Subject: [PATCH 1/2] Update fn_AAFroadPatrol.sqf --- A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf b/A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf index bb18166c28..20d6b26ae1 100644 --- a/A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf +++ b/A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf @@ -14,7 +14,7 @@ _roads = []; private _players = allPlayers - entities "HeadlessClient_F"; private _bases = (seaports + airportsX + outposts) select { call { - if ((_players inAreaArray [markerPos _x, 2000, 2000] isEqualTo []) && !(_players inAreaArray [markerPos _x, 350, 350] isEqualTo [])) exitWith {false}; + if ((_players inAreaArray [markerPos _x, 2000, 2000] isEqualTo []) || !(_players inAreaArray [markerPos _x, 350, 350] isEqualTo [])) exitWith {false}; private _side = sidesX getVariable [_x, sideUnknown]; if (_side == teamPlayer) exitWith {false}; if (_x in seaports and Faction(_side) get "vehiclesGunBoats" isEqualTo []) exitWith {false}; From b074c5094a461faa2cc4cdb5a117c41264824248 Mon Sep 17 00:00:00 2001 From: ante <49555217+ante185@users.noreply.github.com> Date: Mon, 18 Dec 2023 21:54:25 +0100 Subject: [PATCH 2/2] Split IF statement --- A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf b/A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf index 20d6b26ae1..1387c3a3ad 100644 --- a/A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf +++ b/A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf @@ -14,7 +14,8 @@ _roads = []; private _players = allPlayers - entities "HeadlessClient_F"; private _bases = (seaports + airportsX + outposts) select { call { - if ((_players inAreaArray [markerPos _x, 2000, 2000] isEqualTo []) || !(_players inAreaArray [markerPos _x, 350, 350] isEqualTo [])) exitWith {false}; + if ((_players inAreaArray [markerPos _x, 2000, 2000] isEqualTo [])) exitWith {false}; + if (!(_players inAreaArray [markerPos _x, 350, 350] isEqualTo [])) exitWith {false}; private _side = sidesX getVariable [_x, sideUnknown]; if (_side == teamPlayer) exitWith {false}; if (_x in seaports and Faction(_side) get "vehiclesGunBoats" isEqualTo []) exitWith {false};