From 7f05f6bc7d1c81886591985a2c887e3bc93b9fb4 Mon Sep 17 00:00:00 2001 From: Raffson Date: Fri, 17 Jun 2022 03:08:13 +0200 Subject: [PATCH] Don't send updates for CP TGOs. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2139 --- game/theater/controlpoint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/theater/controlpoint.py b/game/theater/controlpoint.py index d8a8bfa1..1fd174d2 100644 --- a/game/theater/controlpoint.py +++ b/game/theater/controlpoint.py @@ -846,7 +846,8 @@ class ControlPoint(MissionTarget, SidcDescribable, ABC): game.theater.iads_network.update_tgo(tgo) conflict_heading = game.theater.heading_to_conflict_from(tgo.position) tgo.rotate(conflict_heading or tgo.heading) - events.update_tgo(tgo) + if not tgo.is_control_point: + events.update_tgo(tgo) @property def required_aircraft_start_type(self) -> Optional[StartType]: