mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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)
This commit is contained in:
parent
f62c2fbabb
commit
6455c38ff4
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user