From 2835ec812f28aad63b45bba927436dbf178234ac Mon Sep 17 00:00:00 2001 From: Shafik Date: Mon, 30 Dec 2024 14:08:04 +0200 Subject: [PATCH] Mankind saved. --- Moose Development/Moose/Functional/Warehouse.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Functional/Warehouse.lua b/Moose Development/Moose/Functional/Warehouse.lua index e5fc12157..2c0431433 100644 --- a/Moose Development/Moose/Functional/Warehouse.lua +++ b/Moose Development/Moose/Functional/Warehouse.lua @@ -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