mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix case of unused aircraft not spawning.
This function was exiting too early causing unused aircraft to stop being spawned at *any* airfield as soon as the first full airfield was found. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1566
This commit is contained in:
@@ -659,8 +659,8 @@ class AircraftConflictGenerator:
|
||||
try:
|
||||
self._spawn_unused_for(squadron, country, faction)
|
||||
except NoParkingSlotError:
|
||||
# If we run out of parking, stop spawning aircraft.
|
||||
return
|
||||
# If we run out of parking, stop spawning aircraft at this base.
|
||||
break
|
||||
|
||||
def _spawn_unused_for(
|
||||
self, squadron: Squadron, country: Country, faction: Faction
|
||||
|
||||
Reference in New Issue
Block a user