Merge pull request #736 from SimonC6R/fix-carrier-sam-rings

Carrier group threat rings move with the carrier.
This commit is contained in:
walterroach 2021-01-06 17:24:15 -06:00 committed by GitHub
commit ef439a6c42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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.
* **[Units]** Pyotr Velikiy cruiser has been removed for now as it's nearly unkillable.

View File

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