Skip to content

Commit f8dbeab

Browse files
committed
Save dynamic brake status
1 parent e90cf2b commit f8dbeab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,8 @@ public override void Save(BinaryWriter outf)
12791279
outf.Write(DPUnitID);
12801280
outf.Write(PreviousGearBoxNotch);
12811281
outf.Write(previousChangedGearBoxNotch);
1282+
outf.Write(DynamicBrake);
1283+
outf.Write(DynamicBrakeIntervention);
12821284

12831285
base.Save(outf);
12841286

@@ -1334,6 +1336,9 @@ public override void Restore(BinaryReader inf)
13341336
PreviousGearBoxNotch = inf.ReadInt32();
13351337
previousChangedGearBoxNotch = inf.ReadInt32();
13361338

1339+
DynamicBrake = inf.ReadBoolean();
1340+
DynamicBrakeIntervention = inf.ReadSingle();
1341+
13371342
base.Restore(inf);
13381343

13391344
LocomotivePowerSupply?.Restore(inf);

0 commit comments

Comments
 (0)