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:
parent
63ff79ef0b
commit
84332a3ebf
@ -2474,7 +2474,7 @@ function FLIGHTGROUP:onafterFuelLow(From, Event, To)
|
||||
self:I(self.lid..string.format("Send to refuel at tanker %s", tanker:GetName()))
|
||||
|
||||
-- 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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user