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

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