From 9c25240c43457fed743f4b0a7ddfbd21ad57fc63 Mon Sep 17 00:00:00 2001 From: FullGas1 Date: Tue, 25 Mar 2025 16:33:09 +0100 Subject: [PATCH] fixes --- CTLD.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CTLD.lua b/CTLD.lua index 0ac8556..b7b59fb 100644 --- a/CTLD.lua +++ b/CTLD.lua @@ -2129,7 +2129,7 @@ end -- *************************************************************** function ctld.isUnitInNamedLogisticZone(_unitName, _logisticUnitName) -- check if a unit is in the named logistic zone - trigger.action.outText('ctld.isUnitInNamedLogisticZone._logisticUnitName = ' .. tostring(_logisticUnitName), 10) + --ctld.logTrace("FG_ ctld.isUnitInNamedLogisticZone._logisticUnitName = %s", ctld.p(_logisticUnitName)) local _unit = Unit.getByName(_unitName) if _unit == nil then return false @@ -2147,6 +2147,7 @@ end -- *************************************************************** function ctld.isUnitInALogisticZone(_unitName) -- check if a unit is in a logistic zone if true then return the logisticUnitName of the zone + --ctld.logTrace("FG_ ctld.isUnitInALogisticZone._unitName = %s", ctld.p(_unitName)) for i, logUnit in ipairs(ctld.logisticUnits) do if ctld.isUnitInNamedLogisticZone(_unitName, logUnit) then return logUnit