mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Run aircraft_generator.generate_packages() only once per ATO, instead of multiple times. Fixed the duplicated flights issue.
This commit is contained in:
parent
91cfff58d9
commit
95bac8ec17
@ -221,14 +221,16 @@ class PretenseMissionGenerator(MissionGenerator):
|
||||
ato,
|
||||
)
|
||||
|
||||
for cp in self.game.theater.controlpoints:
|
||||
if cp.captured:
|
||||
ato = self.game.blue.ato
|
||||
country = self.p_country
|
||||
else:
|
||||
aircraft_generator.generate_packages(
|
||||
country,
|
||||
ato,
|
||||
tgo_generator.runways,
|
||||
)
|
||||
|
||||
ato = self.game.red.ato
|
||||
country = self.e_country
|
||||
|
||||
aircraft_generator.generate_packages(
|
||||
country,
|
||||
ato,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user