mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update FlightGroup.lua
Fixes bug when flight searches a tanker when fuel is low.
This commit is contained in:
@@ -2474,7 +2474,7 @@ function FLIGHTGROUP:onafterFuelLow(From, Event, To)
|
|||||||
self:I(self.lid..string.format("Send to refuel at tanker %s", tanker:GetName()))
|
self:I(self.lid..string.format("Send to refuel at tanker %s", tanker:GetName()))
|
||||||
|
|
||||||
-- Get a coordinate towards the tanker.
|
-- Get a coordinate towards the tanker.
|
||||||
local coordinate=self:GetCoordinate():GetIntermediateCoordinate(tanker.flightgroup:GetCoordinate(), 0.75)
|
local coordinate=self:GetCoordinate():GetIntermediateCoordinate(tanker:GetCoordinate(), 0.75)
|
||||||
|
|
||||||
self:Refuel(coordinate)
|
self:Refuel(coordinate)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user