mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-23 01:41:54 +00:00
fixes
This commit is contained in:
@@ -2129,7 +2129,7 @@ end
|
|||||||
|
|
||||||
-- ***************************************************************
|
-- ***************************************************************
|
||||||
function ctld.isUnitInNamedLogisticZone(_unitName, _logisticUnitName) -- check if a unit is in the named logistic zone
|
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)
|
local _unit = Unit.getByName(_unitName)
|
||||||
if _unit == nil then
|
if _unit == nil then
|
||||||
return false
|
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
|
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
|
for i, logUnit in ipairs(ctld.logisticUnits) do
|
||||||
if ctld.isUnitInNamedLogisticZone(_unitName, logUnit) then
|
if ctld.isUnitInNamedLogisticZone(_unitName, logUnit) then
|
||||||
return logUnit
|
return logUnit
|
||||||
|
|||||||
Reference in New Issue
Block a user