- 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:
FlightControl
2018-09-29 15:34:21 +02:00
parent dc41852e45
commit a84f0e228a
5 changed files with 53 additions and 18 deletions

View File

@@ -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