Skip to content

Commit 4495dfe

Browse files
committed
Revert "Fix display error with HuD"
This reverts commit e9c98d7.
1 parent e9c98d7 commit 4495dfe

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSSteamLocomotive.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6307,10 +6307,6 @@ public override string GetStatus()
63076307

63086308
public override string GetDebugStatus()
63096309
{
6310-
// calculate values for display, so that display value doesn't go negative
6311-
var superheatTempDisplayC = C.FromF(CurrentSuperheatTempF);
6312-
superheatTempDisplayC = MathHelper.Clamp(superheatTempDisplayC, 0.0f, C.FromF(MaxSuperheatRefTempF));
6313-
63146310
var status = new StringBuilder(base.GetDebugStatus());
63156311

63166312
status.AppendFormat("\n\n\t\t === {0} === \t\t\n", Simulator.Catalog.GetString("Key Inputs"));
@@ -6382,8 +6378,7 @@ public override string GetDebugStatus()
63826378
Simulator.Catalog.GetString("MaxSupH"),
63836379
FormatStrings.FormatTemperature(C.FromF(MaxSuperheatRefTempF), IsMetric, false),
63846380
Simulator.Catalog.GetString("CurSupH"),
6385-
FormatStrings.FormatTemperature(superheatTempDisplayC, IsMetric, false)
6386-
);
6381+
FormatStrings.FormatTemperature(C.FromF(CurrentSuperheatTempF), IsMetric, false));
63876382

63886383
status.AppendFormat("\n\t\t === {0} === \t\t{1}/{2}\n",
63896384
Simulator.Catalog.GetString("Steam Usage"),

0 commit comments

Comments
 (0)