Looky1173 / launchpad-bugs-migration2

0 stars 0 forks source link

[BUG n°1987002] In HUD, curve radius displays in decimal miles #2568

Open Looky1173 opened 2 years ago

Looky1173 commented 2 years ago

Imported from https://bugs.launchpad.net/bugs/1987002

Property Value
Reported by Michael Loehr (michael635)
Date reported Thu, 18 Aug 2022 22:10:02 GMT

Curve radius in North America (when used) is expressed in feet. Typical units for curvature on freight systems is Degree of Curvature.

Using Test Source Build = 0.0.8264.42519 (2022-08-17 23:37:18Z)

  1. Route: BNSF Scenic Sub, Explore Route, manual driver
  2. Route: BNSF Scenic Sub, + Explore in Activity Mode + AI driver enabled

Proposed modification is in line 1151 of HUDWindow.cs to display feet instead of meters when not in metric mode.

From:

TableSetCell(table, 14, "{0}", FormatStrings.FormatDistance(car.CurrentCurveRadius, car.IsMetric));

To:

TableSetCell(table, 14, "{0}", FormatStrings.FormatShortDistanceDisplay(car.CurrentCurveRadius, car.IsMetric));