mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-22 06:45:13 +00:00
commit
This commit is contained in:
@@ -6096,7 +6096,6 @@ end
|
|||||||
|
|
||||||
--******************************************************************************************************
|
--******************************************************************************************************
|
||||||
function ctld.autoUpdateRepackMenu(p, t) -- auto update repack menus for each transport unit
|
function ctld.autoUpdateRepackMenu(p, t) -- auto update repack menus for each transport unit
|
||||||
--ctld.logTrace("FG_ ctld.autoUpdateRepackMenu.ctld.transportPilotNames = %s", ctld.p(mist.utils.tableShow(ctld.transportPilotNames)))
|
|
||||||
if t == nil then t = timer.getTime() end
|
if t == nil then t = timer.getTime() end
|
||||||
if ctld.enableRepackingVehicles then
|
if ctld.enableRepackingVehicles then
|
||||||
for _, _unitName in pairs(ctld.transportPilotNames) do
|
for _, _unitName in pairs(ctld.transportPilotNames) do
|
||||||
@@ -6110,7 +6109,6 @@ function ctld.autoUpdateRepackMenu(p, t) -- auto update repack menus for each tr
|
|||||||
local _groupId = ctld.getGroupId(_unit)
|
local _groupId = ctld.getGroupId(_unit)
|
||||||
if _groupId then
|
if _groupId then
|
||||||
if ctld.addedTo[tostring(_groupId)] ~= nil then -- if groupMenu on loaded => add RepackMenus
|
if ctld.addedTo[tostring(_groupId)] ~= nil then -- if groupMenu on loaded => add RepackMenus
|
||||||
--ctld.logTrace("FG_ ctld.autoUpdateRepackMenu call ctld.updateRepackMenu for = %s", ctld.p(_unitName))
|
|
||||||
ctld.updateRepackMenu(_unitName)
|
ctld.updateRepackMenu(_unitName)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -6133,11 +6131,8 @@ function ctld.addOtherF10MenuOptions()
|
|||||||
local status, error = pcall(function()
|
local status, error = pcall(function()
|
||||||
-- now do any player controlled aircraft that ARENT transport units
|
-- now do any player controlled aircraft that ARENT transport units
|
||||||
if ctld.enabledRadioBeaconDrop then
|
if ctld.enabledRadioBeaconDrop then
|
||||||
-- get all BLUE players
|
ctld.addRadioListCommand(2) -- get all BLUE players
|
||||||
ctld.addRadioListCommand(2)
|
ctld.addRadioListCommand(1) -- get all RED players
|
||||||
|
|
||||||
-- get all RED players
|
|
||||||
ctld.addRadioListCommand(1)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if ctld.JTAC_jtacStatusF10 then
|
if ctld.JTAC_jtacStatusF10 then
|
||||||
|
|||||||
Reference in New Issue
Block a user