mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix bug in reserve freqs & tacan
This commit is contained in:
parent
59871ac36c
commit
167d048232
@ -282,10 +282,9 @@ class AircraftGenerator:
|
||||
|
||||
def _reserve_frequencies_and_tacan(self, ato: AirTaskingOrder) -> None:
|
||||
for package in ato.packages:
|
||||
if package.frequency is None:
|
||||
continue
|
||||
if package.frequency not in self.radio_registry.allocated_channels:
|
||||
self.radio_registry.reserve(package.frequency)
|
||||
pfreq = package.frequency
|
||||
if pfreq and pfreq not in self.radio_registry.allocated_channels:
|
||||
self.radio_registry.reserve(pfreq)
|
||||
for f in package.flights:
|
||||
if (
|
||||
f.frequency
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user