Handle IADS updates properly.

This adds the missing events in the backend, and handles them properly in the front end.
This commit is contained in:
Raffson
2022-06-30 03:58:49 +02:00
committed by GitHub
parent 5f071a6138
commit 27dff95df5
7 changed files with 47 additions and 14 deletions

View File

@@ -258,7 +258,7 @@ class QGroundObjectMenu(QDialog):
def update_game(self) -> None:
events = GameUpdateEvents()
events.update_tgo(self.ground_object)
self.game.theater.iads_network.update_tgo(self.ground_object)
self.game.theater.iads_network.update_tgo(self.ground_object, events)
if any(
package.target == self.ground_object
for package in self.game.ato_for(player=False).packages