mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
bugfix
This commit is contained in:
parent
8e64d8e334
commit
3e10f9f451
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user