From 97668e5413aaa6323938fa85ff823ee7179b1a86 Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 6 Jul 2021 21:56:15 +0200 Subject: [PATCH] Update FlightGroup.lua - Fixed flight of airwing is going to tanker even if fuellowrefuel switch is false --- Moose Development/Moose/Ops/FlightGroup.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/FlightGroup.lua b/Moose Development/Moose/Ops/FlightGroup.lua index a71619474..a9e42d16e 100644 --- a/Moose Development/Moose/Ops/FlightGroup.lua +++ b/Moose Development/Moose/Ops/FlightGroup.lua @@ -2757,8 +2757,9 @@ function FLIGHTGROUP:onafterFuelLow(From, Event, To) -- Get closest tanker from airwing that can refuel this flight. 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())) -- Get a coordinate towards the tanker.