From 8c29071d04742584e91c5c5c2fa90b0a0b870dd6 Mon Sep 17 00:00:00 2001 From: Raffson Date: Thu, 15 Jun 2023 03:49:32 +0200 Subject: [PATCH] Fix AI RTB immediately with forced air-start --- changelog.md | 1 + game/missiongenerator/aircraft/flightgroupspawner.py | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.md b/changelog.md index 5265c6b4..3b1df66c 100644 --- a/changelog.md +++ b/changelog.md @@ -31,6 +31,7 @@ * **[New Game Wizard]** Settings would not persist when going back to a previous page (obsolete due to overhaul). * **[Mission Generation]** Unused aircraft are no longer claimed, fixing a bug where these aircraft would no longer be available after aborting the mission. * **[Mission Generation]** Fixed (potential) bug in helipad assignments at FOBs/FARPs. +* **[Mission Generation]** Fix AI immediately returning to base when forced to air-start due to insufficient parking space. # Retribution v1.1.1 (hotfix) diff --git a/game/missiongenerator/aircraft/flightgroupspawner.py b/game/missiongenerator/aircraft/flightgroupspawner.py index 69c8793f..3a182de5 100644 --- a/game/missiongenerator/aircraft/flightgroupspawner.py +++ b/game/missiongenerator/aircraft/flightgroupspawner.py @@ -142,6 +142,7 @@ class FlightGroupSpawner: logging.warning( "No room on runway or parking slots. Starting from the air." ) + self.flight.start_type = StartType.IN_FLIGHT group = self._generate_over_departure(name, cp) return group