From 9a41217a5989185f478afedd6acdbc63c7439b02 Mon Sep 17 00:00:00 2001 From: Simon Clark Date: Sat, 30 Jan 2021 15:50:13 +0000 Subject: [PATCH] Removes control point name dash->space replace. This was breaking runway destruction. This seems to have been a legacy change from https://github.com/Khopa/dcs_liberation/commit/1c67a2e4cf7d4f1c48772538b7f3a022bea8afc3#diff-4c34a7844594e282145481e501ff81d198e869aad558b3589fbc1e140625ea03R20 Fixes #741 --- changelog.md | 1 + game/theater/controlpoint.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 8f829d52..780a1248 100644 --- a/changelog.md +++ b/changelog.md @@ -50,6 +50,7 @@ Saves from 2.3 are not compatible with 2.4. * **[UI]** Create Flight comboboxes now stretch to adjust to the size of their contents. * **[Factions]** USA with C-130 faction now links to the required mod. * **[Campaign]** Fixed issue where destroyed buildings would sometimes not count as destroyed and thus respawn. +* **[Campaign]** Fixed issue where destroyed runways were not registered. * **[Units]** J-11A is no longer spawned with empty loadout. * **[Units]** F-14B is no longer spawned with empty loadout for fighter sweep tasks. * **[Units]** Pyotr Velikiy cruiser has been removed for now as it's nearly unkillable. diff --git a/game/theater/controlpoint.py b/game/theater/controlpoint.py index 6c9c7791..1ca122af 100644 --- a/game/theater/controlpoint.py +++ b/game/theater/controlpoint.py @@ -235,7 +235,7 @@ class ControlPoint(MissionTarget, ABC): at: db.StartingPosition, size: int, importance: float, has_frontline=True, cptype=ControlPointType.AIRBASE): - super().__init__(" ".join(re.split(r"[ \-]", name)[:2]), position) + super().__init__(name, position) # TODO: Should be Airbase specific. self.id = cp_id self.full_name = name