Mankind saved.

This commit is contained in:
Shafik 2024-12-30 14:08:04 +02:00
parent 5a05917bc2
commit 2835ec812f

View File

@ -6089,7 +6089,7 @@ function WAREHOUSE:_SpawnAssetAircraft(alias, asset, request, parking, uncontrol
terminal=parking[i].TerminalID
end
if self.Debug then
if self.Debug and terminal then
local text=string.format("Spawnplace unit %s terminal %d.", unit.name, terminal)
coord:MarkToAll(text)
env.info(text)
@ -8124,7 +8124,7 @@ function WAREHOUSE:_FindParkingForAssets(airbase, assets)
local coord=problem.coord --Core.Point#COORDINATE
local text=string.format("Obstacle %s [type=%s] blocking spot=%d! Size=%.1f m and distance=%.1f m.", problem.name, problem.type, _termid, problem.size, problem.dist)
self:I(self.lid..text)
coord:MarkToAll(string.format(text))
coord:MarkToAll(text)
else
self:T(self.lid..string.format("Parking spot %d is occupied or not big enough!", _termid))
end