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

@@ -843,7 +843,7 @@ class ControlPoint(MissionTarget, SidcDescribable, ABC):
tgo, VehicleGroupGroundObject
):
if isinstance(tgo, IadsGroundObject):
game.theater.iads_network.update_tgo(tgo)
game.theater.iads_network.update_tgo(tgo, events)
conflict_heading = game.theater.heading_to_conflict_from(tgo.position)
tgo.rotate(conflict_heading or tgo.heading)
if not tgo.is_control_point: