OPS update

- Set destination base to airwing base for flight groups
- Restored setting of home, destination and current base in OPSGROUP
- Fixed bug if no airbase associated with airwing in check rescuehelo
- Added check that cohort names are unique
- Removed InitWaypoints function from FLIGHTGROUP (obsolete)
This commit is contained in:
Frank
2024-12-11 22:49:40 +01:00
parent 171af5a3c3
commit 62dfb5b5ff
5 changed files with 39 additions and 63 deletions

View File

@@ -11450,7 +11450,7 @@ function OPSGROUP:_InitWaypoints(WpIndexMin, WpIndexMax)
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() -- Skipped To fix RTB issue
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"))
@@ -11461,9 +11461,9 @@ function OPSGROUP:_InitWaypoints(WpIndexMin, WpIndexMax)
end
-- Set destination to homebase.
--if self.destbase==nil then -- Skipped To fix RTB issue
-- self.destbase=self.homebase
--end
if self.destbase==nil then -- Skipped To fix RTB issue
self.destbase=self.homebase
end
end