Skip to content

Commit

Permalink
Bug fix for https://bugs.launchpad.net/or/+bug/2009842 DPU: wrong BP …
Browse files Browse the repository at this point in the history
…and MR values of helpers in display
  • Loading branch information
Csantucci committed Mar 9, 2023
1 parent 9079364 commit f784151
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -1159,14 +1159,14 @@ public string GetDPDebugStatus()
status.AppendFormat("{0:F0}\t", brakeInfoValue);

// MR
status.AppendFormat("{0:F0}", FormatStrings.FormatPressure((Simulator.PlayerLocomotive as MSTSLocomotive).MainResPressurePSI, PressureUnit.PSI, (Simulator.PlayerLocomotive as MSTSLocomotive).BrakeSystemPressureUnits[BrakeSystemComponent.MainReservoir], true));
status.AppendFormat("{0:F0}", FormatStrings.FormatPressure(MainResPressurePSI, PressureUnit.PSI, (Simulator.PlayerLocomotive as MSTSLocomotive).BrakeSystemPressureUnits[BrakeSystemComponent.MainReservoir], true));
}
return status.ToString();
}

string brakeValue(string tokenIni, string tokenEnd) // used by GetDpuStatus(bool dataHud)
{
string trainBrakeStatus = Simulator.PlayerLocomotive.GetTrainBrakeStatus();
string trainBrakeStatus = GetTrainBrakeStatus();
var brakeInfoValue = "-";
if (trainBrakeStatus.Contains(tokenIni) && trainBrakeStatus.Contains(tokenEnd))
{
Expand Down

0 comments on commit f784151

Please sign in to comment.