Use squadron radio_preset freq as flight freq if present

This commit is contained in:
Raffson 2023-09-08 20:38:17 +02:00
parent 0b152c201d
commit 09749bc088
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -176,6 +176,8 @@ class FlightGroupConfigurator:
if self.flight.flight_type in {FlightType.AEWC, FlightType.REFUELING}:
self.register_air_support(freq)
elif self.flight.client_count and self.flight.squadron.radio_presets:
freq = self.flight.squadron.radio_presets["intra_flight"][0]
elif self.flight.frequency is None and self.flight.client_count:
freq = self.flight.unit_type.alloc_flight_radio(self.radio_registry)