File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerTransmissions Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -630,7 +630,6 @@ public Axle()
630
630
}
631
631
public void Initialize ( )
632
632
{
633
- AxleSpeedMpS = 0 ;
634
633
motor ? . Initialize ( ) ;
635
634
}
636
635
public void InitializeMoving ( )
@@ -677,6 +676,8 @@ public void Restore(BinaryReader inf)
677
676
previousSlipSpeedMpS = inf . ReadSingle ( ) ;
678
677
AxleForceN = inf . ReadSingle ( ) ;
679
678
AxleSpeedMpS = inf . ReadSingle ( ) ;
679
+ NumOfSubstepsPS = inf . ReadInt32 ( ) ;
680
+ integratorError = inf . ReadSingle ( ) ;
680
681
}
681
682
682
683
/// <summary>
@@ -689,6 +690,8 @@ public void Save(BinaryWriter outf)
689
690
outf . Write ( previousSlipSpeedMpS ) ;
690
691
outf . Write ( AxleForceN ) ;
691
692
outf . Write ( AxleSpeedMpS ) ;
693
+ outf . Write ( NumOfSubstepsPS ) ;
694
+ outf . Write ( integratorError ) ;
692
695
}
693
696
694
697
/// <summary>
You can’t perform that action at this time.
0 commit comments