Skip to content

Commit a779f2c

Browse files
authored
Merge pull request #1709 from bagigi-arma/fix/boats-spawning-in-ponds
FIX: Boat Patrols Spawning in Ponds
2 parents 96de318 + 9fcfe75 commit a779f2c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/create_patrol.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ _roads = _roads select {isOnRoad _x};
5050
if (_roads isEqualTo []) then {
5151
_safe_pos = [_pos, 0, 500, 13, [0,1] select btc_p_sea, 60 * (pi / 180), 0] call BIS_fnc_findSafePos;
5252
_safe_pos = [_safe_pos select 0, _safe_pos select 1, 0];
53-
_pos_isWater = surfaceIsWater _safe_pos;
53+
_pos_isWater = (surfaceIsWater _safe_pos) && {getTerrainHeightASL _safe_pos < -2};
5454
if (_pos_isWater) then {
5555
_veh_type = selectRandom btc_civ_type_boats;
5656
} else {

=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_group.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (_wp isEqualTo "HOUSE") then { // Find building
5050
};
5151

5252
_group_structure params ["_numberOfGroup", "_structure"];
53-
private _pos_iswater = surfaceIsWater _pos;
53+
private _pos_iswater = (surfaceIsWater _pos) && {getTerrainHeightASL _pos < -1};
5454
private _hashMapGroup = createHashMap;
5555
_hashMapGroup set ["_pos", _pos];
5656
if (

=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_patrol.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ if (_start_city getVariable ["hasbeach", false]) then {
6262
} else {
6363
_pos = getPos _start_city;
6464
};
65-
private _pos_isWater = surfaceIsWater _pos;
65+
private _pos_isWater = (surfaceIsWater _pos) && {getTerrainHeightASL _pos < -2};
6666
if (_pos_isWater) then {
6767
_pos = [_pos select 0, _pos select 1, 0];
6868
_random = 2;

0 commit comments

Comments
 (0)