Skip to content

Commit 00c5b8b

Browse files
committed
Save retainer debug state so it isn't lost during load from savegame
1 parent fc86323 commit 00c5b8b

File tree

1 file changed

+2
-0
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS

1 file changed

+2
-0
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS/AirSinglePipe.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ public override void Save(BinaryWriter outf)
321321
outf.Write(HandbrakePercent);
322322
outf.Write(ReleaseRatePSIpS);
323323
outf.Write(RetainerPressureThresholdPSI);
324+
outf.Write(RetainerDebugState);
324325
outf.Write(AutoCylPressurePSI);
325326
outf.Write(AuxResPressurePSI);
326327
outf.Write(EmergResPressurePSI);
@@ -344,6 +345,7 @@ public override void Restore(BinaryReader inf)
344345
HandbrakePercent = inf.ReadSingle();
345346
ReleaseRatePSIpS = inf.ReadSingle();
346347
RetainerPressureThresholdPSI = inf.ReadSingle();
348+
RetainerDebugState = inf.ReadString();
347349
AutoCylPressurePSI = inf.ReadSingle();
348350
AuxResPressurePSI = inf.ReadSingle();
349351
EmergResPressurePSI = inf.ReadSingle();

0 commit comments

Comments
 (0)