Fixed with A2G tasking

Imagine, the mission had a static moose.lua. I was testing with a static
moose.lua
This commit is contained in:
FlightControl
2017-05-16 21:24:38 +02:00
parent 1662b891df
commit caedaddd06
4 changed files with 47 additions and 35 deletions

View File

@@ -159,13 +159,23 @@ do -- ACT_ROUTE
local RouteText = ""
if self.RouteMode == "B" then
if self.Coordinate and self.RouteMode == "B" then
RouteText = "Route to " .. FromCoordinate:GetBRText( self.Coordinate ) .. " km."
end
if self.RouteMode == "C" then
if self.Coordinate and self.RouteMode == "C" then
RouteText = "Route to " .. self.Coordinate:ToString()
end
if self.Zone and self.RouteMode == "B" then
local Coordinate = self.Zone:GetCoordinate()
RouteText = "Route to zone bearing " .. FromCoordinate:GetBRText( Coordinate ) .. " km."
end
if self.Zone and self.RouteMode == "C" then
local Coordinate = self.Zone:GetCoordinate()
RouteText = "Route to zone at " .. Coordinate:ToString()
end
return RouteText
end