Fixed detailed report following settings of player

* Detailed task report now follows coordinate format settings of player.
This commit is contained in:
FlightControl_Master 2017-09-15 17:01:15 +02:00
parent 6799cd776e
commit df7ffc2a3f
2 changed files with 3 additions and 2 deletions

View File

@ -1072,7 +1072,7 @@ do -- COORDINATE
end
if ModeA2A then
if ModeA2A == true then
return self:ToStringA2A( Controllable, Settings )
else
return self:ToStringA2G( Controllable, Settings )

View File

@ -1589,8 +1589,9 @@ function TASK:ReportDetails( ReportGroup )
Report:Add( TaskInfoIDText .. TaskInfo.TaskInfoText )
elseif type(TaskInfo) == "table" then
if TaskInfoID == "Coordinates" then
local FromCoordinate = ReportGroup:GetUnit(1):GetCoordinate()
local ToCoordinate = TaskInfo.TaskInfoText -- Core.Point#COORDINATE
Report:Add( TaskInfoIDText .. ToCoordinate:ToString() )
Report:Add( TaskInfoIDText .. ToCoordinate:ToString( ReportGroup:GetUnit(1), nil, self ) )
else
end
end