Skip to content

Commit 1b8e1c3

Browse files
committed
Merge branch 'master' into release-3.18.6
2 parents e8863f2 + 21781d6 commit 1b8e1c3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

addons/common/fnc_isTerrainObject.sqf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,4 @@ SCRIPT(isTerrainObject);
2323

2424
params [["_object", objNull, [objNull]]];
2525

26-
if (isNull _object) exitWith { false };
27-
28-
// Terrain objects always have an owner of 1, but `owner` command is server exec. So we just check first character of netId
29-
// They also have a negative netId, but Dedmen said not to rely on it in the case that BI fixes it
30-
(netId _object) select [0, 2] == "1:"
26+
_object in nearestTerrainObjects [_object, [], 1, false, true] // return

0 commit comments

Comments
 (0)