Don't reject exact fits when transferring squadrons.

cherry-pick from a024be6b1d6ab65f4dd1ed108f29a81dad86b3f8
This commit is contained in:
MetalStormGhost 2022-02-06 22:39:41 +02:00 committed by RndName
parent 7e54c8dea7
commit eb8859ebea
No known key found for this signature in database
GPG Key ID: 5EF516FD9537F7C0
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ Saves from 5.1.0 are compatible with 5.2.0
* **[Mission Generation]** Fixed incorrect SA-5 and NASAMS threat range when TR destroyed. It will not count as threat anymore when the TR is dead.
* **[Mission Generation]** Fixed "Max Threat Range" error
* **[Mission Generation]** Fix unculled zones not updating when needed
* **[Mission Planner]** Now allows squadron transfers to control points where the number of free slots matches exactly the expected size of the transferring squadron next turn.
* **[Data]** Removed Fw 190 A-8 and D-9 from Germany 1940 and 1942 faction list for historical accuracy.
* **[Data]** Updated Loadouts for Tornado GR4, F-15E and F-16C
* **[Data]** Corrected some unit data

View File

@ -340,7 +340,7 @@ class Squadron:
)
return
if self.expected_size_next_turn >= destination.unclaimed_parking():
if self.expected_size_next_turn > destination.unclaimed_parking():
raise RuntimeError(f"Not enough parking for {self} at {destination}.")
if not destination.can_operate(self.aircraft):
raise RuntimeError(f"{self} cannot operate at {destination}.")