Don't send updates for CP TGOs.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2139
This commit is contained in:
Raffson 2022-06-17 03:08:13 +02:00 committed by GitHub
parent 8f0d071afb
commit 7f05f6bc7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]: