From 5a05917bc22e4a814da731637380d598638a8869 Mon Sep 17 00:00:00 2001 From: shaji Date: Tue, 10 Dec 2024 19:04:09 +0100 Subject: [PATCH] [Fixed] FlightGroup do not RTB because of incorrect `destbase` assignment. --- Moose Development/Moose/Ops/OpsGroup.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Moose Development/Moose/Ops/OpsGroup.lua b/Moose Development/Moose/Ops/OpsGroup.lua index 8ae8c06c9..132062c29 100644 --- a/Moose Development/Moose/Ops/OpsGroup.lua +++ b/Moose Development/Moose/Ops/OpsGroup.lua @@ -11444,10 +11444,10 @@ function OPSGROUP:_InitWaypoints(WpIndexMin, WpIndexMax) if self:IsFlightgroup() then -- Get home and destination airbases from waypoints. - self.homebase=self.homebase or self:GetHomebaseFromWaypoints() + self.homebase=self.homebase or self:GetHomebaseFromWaypoints() -- GetHomebaseFromWaypoints() returns carriers or destroyers if no airbase is found. local destbase=self:GetDestinationFromWaypoints() self.destbase=self.destbase or destbase - self.currbase=self:GetHomebaseFromWaypoints() + --self.currbase=self:GetHomebaseFromWaypoints() -- Skipped To fix RTB issue --env.info("FF home base "..(self.homebase and self.homebase:GetName() or "unknown")) --env.info("FF dest base "..(self.destbase and self.destbase:GetName() or "unknown")) @@ -11458,9 +11458,9 @@ function OPSGROUP:_InitWaypoints(WpIndexMin, WpIndexMax) end -- Set destination to homebase. - if self.destbase==nil then - self.destbase=self.homebase - end + --if self.destbase==nil then -- Skipped To fix RTB issue + -- self.destbase=self.homebase + --end end