mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
- pushing fix for issue with command center reporting.
- pushing fix for issue with markings in cargo tasking not displayed. - i have removed the workaround for the DCS bug workaround, get the DCS API (getPlayerName()) for a unit is returning "" or nil.
This commit is contained in:
@@ -1361,10 +1361,19 @@ do -- TASK_CARGO
|
||||
end
|
||||
|
||||
--- @param #TASK_CARGO self
|
||||
function TASK_CARGO:UpdateTaskInfo( DetectedItem )
|
||||
function TASK_CARGO:UpdateTaskInfo()
|
||||
|
||||
if self:IsStatePlanned() or self:IsStateAssigned() then
|
||||
self.TaskInfo:AddTaskName( 0, "MSOD" )
|
||||
self.TaskInfo:AddCargoSet( self.SetCargo, 10, "SOD", true )
|
||||
local Coordinates = {}
|
||||
for CargoName, Cargo in pairs( self.SetCargo:GetSet() ) do
|
||||
local Cargo = Cargo -- Cargo.Cargo#CARGO
|
||||
if not Cargo:IsLoaded() then
|
||||
Coordinates[#Coordinates+1] = Cargo:GetCoordinate()
|
||||
end
|
||||
end
|
||||
self.TaskInfo:AddCoordinates( Coordinates, 1, "M" )
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user