Skip to content

Commit cc666f0

Browse files
committed
Automatic merge of T1.5.1-664-gd39447273 and 7 pull requests
- Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters - Pull request #865 at 776d6df: Dispatcher window improvements - Pull request #874 at f8dbeab: Dynamic brake controller refactoring - Pull request #875 at 43bf33e: Bug fix for https://bugs.launchpad.net/or/+bug/2036346 Player train switching doesn't work with 3D cabs - Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder - Pull request #878 at 2a7fb17: Implement Polach Adhesion - Pull request #879 at 5a0ff7b: chore: remove Website folder
9 parents 960a986 + d394472 + d00beb9 + 776d6df + f8dbeab + 43bf33e + f92de76 + 2a7fb17 + 5a0ff7b commit cc666f0

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
@@ -1284,6 +1284,8 @@ public override void Save(BinaryWriter outf)
12841284
outf.Write(DPUnitID);
12851285
outf.Write(PreviousGearBoxNotch);
12861286
outf.Write(previousChangedGearBoxNotch);
1287+
outf.Write(DynamicBrake);
1288+
outf.Write(DynamicBrakeIntervention);
12871289

12881290
base.Save(outf);
12891291

@@ -1339,6 +1341,9 @@ public override void Restore(BinaryReader inf)
13391341
PreviousGearBoxNotch = inf.ReadInt32();
13401342
previousChangedGearBoxNotch = inf.ReadInt32();
13411343

1344+
DynamicBrake = inf.ReadBoolean();
1345+
DynamicBrakeIntervention = inf.ReadSingle();
1346+
13421347
base.Restore(inf);
13431348

13441349
LocomotivePowerSupply?.Restore(inf);

0 commit comments

Comments
 (0)