From 7d898f8b483469cfbce9dcf8f34caaaca4219b75 Mon Sep 17 00:00:00 2001 From: Raffson Date: Sat, 20 Jul 2024 02:50:06 +0200 Subject: [PATCH] Account for free heli slots & ground spawns for airfields --- qt_ui/windows/SquadronDialog.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qt_ui/windows/SquadronDialog.py b/qt_ui/windows/SquadronDialog.py index 98a25f6d..98ac5b40 100644 --- a/qt_ui/windows/SquadronDialog.py +++ b/qt_ui/windows/SquadronDialog.py @@ -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)),