This commit is contained in:
Applevangelist 2021-09-24 18:38:58 +02:00
parent 8e64d8e334
commit 3e10f9f451

View File

@ -1135,6 +1135,8 @@ end
-- @return #table Table of coordinates and terminal IDs of free parking spots. Each table entry has the elements .Coordinate and .TerminalID.
function AIRBASE:FindFreeParkingSpotForAircraft(group, terminaltype, scanradius, scanunits, scanstatics, scanscenery, verysafe, nspots, parkingdata)
if group and group:IsAlive() then
-- Init default
scanradius=scanradius or 50
if scanunits==nil then
@ -1307,6 +1309,10 @@ function AIRBASE:FindFreeParkingSpotForAircraft(group, terminaltype, scanradius,
-- Retrun spots we found, even if there were not enough.
return validspots
else
return {}
end
end
--- Check black and white lists.