mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update FlightGroup.lua
- Fixed flight of airwing is going to tanker even if fuellowrefuel switch is false
This commit is contained in:
@@ -2757,8 +2757,9 @@ function FLIGHTGROUP:onafterFuelLow(From, Event, To)
|
|||||||
-- Get closest tanker from airwing that can refuel this flight.
|
-- Get closest tanker from airwing that can refuel this flight.
|
||||||
local tanker=self.airwing:GetTankerForFlight(self)
|
local tanker=self.airwing:GetTankerForFlight(self)
|
||||||
|
|
||||||
if tanker then
|
if tanker and self.fuellowrefuel then
|
||||||
|
|
||||||
|
-- Debug message.
|
||||||
self:I(self.lid..string.format("Send to refuel at tanker %s", tanker.flightgroup:GetName()))
|
self:I(self.lid..string.format("Send to refuel at tanker %s", tanker.flightgroup:GetName()))
|
||||||
|
|
||||||
-- Get a coordinate towards the tanker.
|
-- Get a coordinate towards the tanker.
|
||||||
|
|||||||
Reference in New Issue
Block a user