mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
ZONE
* change to distance calc for finding spots w/o buildings
This commit is contained in:
@@ -1458,7 +1458,7 @@ function ZONE_RADIUS:GetRandomCoordinateWithoutBuildings(inner,outer,distance,ma
|
|||||||
for _,_coord in pairs (buildings) do
|
for _,_coord in pairs (buildings) do
|
||||||
local coord = _coord -- Core.Point#COORDINATE
|
local coord = _coord -- Core.Point#COORDINATE
|
||||||
-- keep >50m dist from buildings
|
-- keep >50m dist from buildings
|
||||||
if coord:Get2DDistance(rcoord) > dist then
|
if coord:Get3DDistance(rcoord) > dist then
|
||||||
found = true
|
found = true
|
||||||
else
|
else
|
||||||
found = false
|
found = false
|
||||||
|
|||||||
Reference in New Issue
Block a user