From 042be9da6d0895fb82440c5da3b2b340bd5c3b9d Mon Sep 17 00:00:00 2001 From: Simon Clark Date: Wed, 6 Jan 2021 18:58:20 +0000 Subject: [PATCH] Carrier group threat rings move with the carrier. Previously, the individual units in the group were moved, but the ground_unit object was not. Fixes: Khopa/dcs_liberation#735 --- changelog.md | 1 + game/theater/controlpoint.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index 5fc245cd..bacea54a 100644 --- a/changelog.md +++ b/changelog.md @@ -30,6 +30,7 @@ Saves from 2.3 are not compatible with 2.4. ## Fixes * **[Economy]** Pending unit orders at captured bases will be refunded. +* **[UI]** Carrier group SAM threat rings now move with the carrier. * **[Units]** J-11A is no longer spawned with empty loadout. # 2.3.3 diff --git a/game/theater/controlpoint.py b/game/theater/controlpoint.py index c033214b..72733199 100644 --- a/game/theater/controlpoint.py +++ b/game/theater/controlpoint.py @@ -561,6 +561,8 @@ class ControlPoint(MissionTarget, ABC): # Move the linked unit groups for ground_object in self.ground_objects: if isinstance(ground_object, GenericCarrierGroundObject): + ground_object.position.x = ground_object.position.x + delta.x + ground_object.position.y = ground_object.position.y + delta.y for group in ground_object.groups: for u in group.units: u.position.x = u.position.x + delta.x