Add support for some extra loadout types.

Also fixes the bug that @Starfire13 spotted in Khopa/dcs_liberation#744.
This commit is contained in:
Simon Clark
2021-01-07 13:37:16 +00:00
parent a81890e844
commit 7085bce6d4
2 changed files with 11 additions and 9 deletions

View File

@@ -46,6 +46,7 @@ class QPylonEditor(QComboBox):
def default_loadout(self, pylon: Pylon) -> None:
self.flight.unit_type.load_payloads()
pylon_default_weapon = None
loadout = None
# Iterate through each possible payload type for a given aircraft.
# Some aircraft have custom loadouts that in aren't the standard set.
for payload_override in db.EXPANDED_TASK_PAYLOAD_OVERRIDE.get(self.flight.flight_type.name):