Could not test all, but already committing. It works in SP and fixes the completed task issue.

This commit is contained in:
FlightControl_Master
2018-03-09 12:36:53 +01:00
parent bf9d6cbd75
commit 778ab58eee
2 changed files with 69 additions and 26 deletions

View File

@@ -289,7 +289,7 @@ do -- TASK_A2G
--- Return the relative distance to the target vicinity from the player, in order to sort the targets in the reports per distance from the threats.
-- @param #TASK_A2G self
function TASK_A2G:ReportOrder( ReportGroup )
local Coordinate = self:GetData( "Coordinate" )
local Coordinate = self.TaskInfo:GetData( "Coordinate" )
local Distance = ReportGroup:GetCoordinate():Get2DDistance( Coordinate )
return Distance