mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Changes
This commit is contained in:
parent
3b2850e042
commit
29947d69c3
@ -1517,6 +1517,23 @@ function AWACS:_SubScribeTactRadio(Group,Frequency)
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- [Internal] _CheckSubscribers
|
||||||
|
-- @param #AWACS self
|
||||||
|
-- @return #AWACS self
|
||||||
|
function AWACS:_CheckSubscribers()
|
||||||
|
self:T(self.lid.."_InitLocalization")
|
||||||
|
|
||||||
|
for _name,_freq in pairs(self.TacticalSubscribers or {}) do
|
||||||
|
local grp = GROUP:FindByName(_name)
|
||||||
|
if (not grp) or (not grp:IsAlive()) then
|
||||||
|
self.TacticalFrequencies[_freq] = _freq
|
||||||
|
self.TacticalSubscribers[_name] = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
--- [Internal] Init localization
|
--- [Internal] Init localization
|
||||||
-- @param #AWACS self
|
-- @param #AWACS self
|
||||||
-- @return #AWACS self
|
-- @return #AWACS self
|
||||||
@ -6180,6 +6197,8 @@ function AWACS:onafterStatus(From, Event, To)
|
|||||||
|
|
||||||
self:_CheckMerges()
|
self:_CheckMerges()
|
||||||
|
|
||||||
|
self:_CheckSubscribers()
|
||||||
|
|
||||||
local outcome, targets = self:_TargetSelectionProcess(true)
|
local outcome, targets = self:_TargetSelectionProcess(true)
|
||||||
|
|
||||||
self:_CheckTaskQueue()
|
self:_CheckTaskQueue()
|
||||||
|
|||||||
@ -2483,6 +2483,15 @@ function PLAYERTASKCONTROLLER:_CheckTaskQueue()
|
|||||||
self:T("*****Removing player " .. _id)
|
self:T("*****Removing player " .. _id)
|
||||||
self.TasksPerPlayer:PullByID(_id)
|
self.TasksPerPlayer:PullByID(_id)
|
||||||
end
|
end
|
||||||
|
local clients=task:GetClientObjects()
|
||||||
|
for _,client in pairs(clients) do
|
||||||
|
self:_RemoveMenuEntriesForTask(task,client)
|
||||||
|
--self:_SwitchMenuForClient(client,"Info")
|
||||||
|
end
|
||||||
|
for _,client in pairs(clients) do
|
||||||
|
-- self:_RemoveMenuEntriesForTask(Task,client)
|
||||||
|
self:_SwitchMenuForClient(client,"Info",5)
|
||||||
|
end
|
||||||
-- Follow-up tasks?
|
-- Follow-up tasks?
|
||||||
local nexttasks = {}
|
local nexttasks = {}
|
||||||
if task.FinalState == "Success" then
|
if task.FinalState == "Success" then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user