mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-18 13:15:56 +00:00
corrected a bug: the units listed in the ctld.transportPilotNames didn't have a F10 menu
This commit is contained in:
@@ -7212,17 +7212,6 @@ function ctld.eventHandler:onEvent(event)
|
|||||||
local playerTypeName = _unit:getTypeName()
|
local playerTypeName = _unit:getTypeName()
|
||||||
ctld.logTrace("playerTypeName = %s", ctld.p(playerTypeName))
|
ctld.logTrace("playerTypeName = %s", ctld.p(playerTypeName))
|
||||||
|
|
||||||
local notFound = true
|
|
||||||
|
|
||||||
for _,transportPilotName in pairs(ctld.transportPilotNames) do
|
|
||||||
if transportPilotName == unitName then
|
|
||||||
ctld.logDebug("Unit is already a transport pilot, skipping...")
|
|
||||||
notFound = false
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if notFound then
|
|
||||||
-- Allow units to CTLD by aircraft type and not by pilot name
|
-- Allow units to CTLD by aircraft type and not by pilot name
|
||||||
if ctld.addPlayerAircraftByType then
|
if ctld.addPlayerAircraftByType then
|
||||||
for _,aircraftType in pairs(ctld.aircraftTypeTable) do
|
for _,aircraftType in pairs(ctld.aircraftTypeTable) do
|
||||||
@@ -7245,7 +7234,6 @@ function ctld.eventHandler:onEvent(event)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- initialize the random number generator to make it almost random
|
-- initialize the random number generator to make it almost random
|
||||||
|
|||||||
Reference in New Issue
Block a user