Removes control point name dash->space replace.

This was breaking runway destruction. This seems to have been a legacy change from 1c67a2e4cf (diff-4c34a7844594e282145481e501ff81d198e869aad558b3589fbc1e140625ea03R20)

Fixes #741
This commit is contained in:
Simon Clark 2021-01-30 15:50:13 +00:00
parent f6557e4980
commit 9a41217a59
2 changed files with 2 additions and 1 deletions

View File

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

View File

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