mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Account for free heli slots & ground spawns for airfields
This commit is contained in:
parent
6194ec7301
commit
7d898f8b48
@ -215,7 +215,11 @@ class SquadronDestinationComboBox(QComboBox):
|
||||
f"Consider moving these squadrons to different airfield "
|
||||
"to avoid possible air-starts.",
|
||||
)
|
||||
return len(ap.free_parking_slots(dcs_unit_type))
|
||||
return (
|
||||
len(ap.free_parking_slots(dcs_unit_type))
|
||||
+ free_helicopter_slots
|
||||
+ free_ground_spawns
|
||||
)
|
||||
else:
|
||||
parking_type = ParkingType().from_aircraft(
|
||||
next(AircraftType.for_dcs_type(dcs_unit_type)),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user