Skip to content

Commit

Permalink
Merge pull request #3235 from jaj22/fix-no-roads-HC-spawn
Browse files Browse the repository at this point in the history
Fix case where HC vehicles are remote-spawned with no roads near HQ
  • Loading branch information
Bob-Murphy authored Apr 28, 2024
2 parents 3519b19 + 8520563 commit 7528fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/REINF/fn_spawnHCVeh.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private _spawnPos = false;
private _spawnDir = false;

for "_i" from 1 to 10 do {
//systemChat format ["Attempt %1", _i];
if (_roads isEqualTo []) exitWith {};
private _road = selectRandom _roads;
(getRoadInfo _road) params ["", "_roadWidth", "", "", "", "", "_begPos", "_endPos"];

Expand Down

0 comments on commit 7528fcb

Please sign in to comment.