Skip to content

Commit 2eeaf7a

Browse files
committed
Bug fix for https://bugs.launchpad.net/or/+bug/1942061. WindResistance locales.
1 parent 1c4a84d commit 2eeaf7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/RunActivity/Viewer3D/Popups/HUDWindow.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,7 @@ void TextPageForceInfo(TableData table)
10091009

10101010
if (train.TrainWindResistanceDependent) // Only show this information if wind resistance is selected
10111011
{
1012-
TableAddLine(table, "Wind Speed: {0:N2} mph Wind Direction: {1:N2} Deg Train Direction: {2:N2} Deg ResWind: {3:N2} Deg ResSpeed {4:N2} mph", Me.ToMi(pS.TopH(train.PhysicsWindSpeedMpS)), train.PhysicsWindDirectionDeg, train.PhysicsTrainLocoDirectionDeg, train.ResultantWindComponentDeg, Me.ToMi(pS.TopH(train.WindResultantSpeedMpS)));
1013-
1012+
TableAddLine(table, $"{Viewer.Catalog.GetString("Wind Speed:")} {Me.ToMi(pS.TopH(train.PhysicsWindSpeedMpS)):N2} mph {Viewer.Catalog.GetString("Wind Direction:")} {train.PhysicsWindDirectionDeg:N2} Deg {Viewer.Catalog.GetString("Train Direction:")} {train.PhysicsTrainLocoDirectionDeg:N2} Deg {Viewer.Catalog.GetString("ResWind:")} {train.ResultantWindComponentDeg:N2} Deg {Viewer.Catalog.GetString("ResSpeed:")} {Me.ToMi(pS.TopH(train.WindResultantSpeedMpS)):N2} mph");
10141013
TableAddLine(table);
10151014
}
10161015

0 commit comments

Comments
 (0)