Skip to content

Commit

Permalink
Bugfix: broke patrol max distance check in #3031 (#3092)
Browse files Browse the repository at this point in the history
* Update fn_AAFroadPatrol.sqf

* Split IF statement
  • Loading branch information
ante185 authored Dec 23, 2023
1 parent f1692c5 commit d165c57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion A3A/addons/core/functions/CREATE/fn_AAFroadPatrol.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit d165c57

Please sign in to comment.