Add extra condition to preferred client start-type

This commit is contained in:
Raffson 2024-06-01 20:50:17 +02:00
parent f88c103db5
commit 8c9f62a2fb
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -78,7 +78,11 @@ class PackageBuilder:
)
# If this is a client flight, set the start_type again to match the configured default
# https://github.com/dcs-liberation/dcs_liberation/issues/1567
if flight.roster is not None and flight.roster.player_count > 0:
if (
squadron.location.required_aircraft_start_type is None
and flight.roster is not None
and flight.roster.player_count > 0
):
flight.start_type = (
squadron.coalition.game.settings.default_start_type_client
)