From 6455c38ff4c550dd49f95e1ea970ee8b3ebda699 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 11 Dec 2020 19:56:29 -0800 Subject: [PATCH] Fix duplication of pydcs translation keys. We shouldn't be constructing these by hand, and the first argument is not the value of the string. I'm not really sure why the current code works at all. We probably do this in other places and should clean that up, but for now this should fix Tauntaun. Fixes https://github.com/Khopa/dcs_liberation/issues/528 (cherry picked from commit affb332eb9b1539bd27edc55d7d72954063d4ebf) --- gen/aircraft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/aircraft.py b/gen/aircraft.py index 395f558e..a50c9b69 100644 --- a/gen/aircraft.py +++ b/gen/aircraft.py @@ -1381,13 +1381,13 @@ class PydcsWaypointBuilder: def build(self) -> MovingPoint: waypoint = self.group.add_waypoint( - Point(self.waypoint.x, self.waypoint.y), self.waypoint.alt) + Point(self.waypoint.x, self.waypoint.y), self.waypoint.alt, + name=self.mission.string(self.waypoint.name)) if self.waypoint.flyover: waypoint.type = PointAction.FlyOverPoint.value waypoint.alt_type = self.waypoint.alt_type - waypoint.name = String(self.waypoint.name) tot = self.flight.flight_plan.tot_for_waypoint(self.waypoint) if tot is not None: self.set_waypoint_tot(waypoint, tot)