Support groups for SAM templates.

It's only possible to control emissions for the group as a whole, so
Skynet needs PDs to be in separate groups from the main part of the SAM
for PD to operate correctly.

https://github.com/Khopa/dcs_liberation/issues/429
https://github.com/Khopa/dcs_liberation/issues/470
This commit is contained in:
Dan Albert
2020-12-24 15:50:01 -08:00
parent 10debbc286
commit 85619b156d
11 changed files with 98 additions and 59 deletions

View File

@@ -355,8 +355,7 @@ class QBuyGroupForGroundObjectDialog(QDialog):
# Generate SAM
generator = sam_generator(self.game, self.ground_object)
generator.generate()
generated_group = generator.get_generated_group()
self.ground_object.groups = [generated_group]
self.ground_object.groups = generator.groups
GameUpdateSignal.get_instance().updateBudget(self.game)