Fix AI RTB immediately with forced air-start

This commit is contained in:
Raffson 2023-06-15 03:49:32 +02:00
parent 91ee04bf2a
commit 8c29071d04
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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