File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Source/Orts.Simulation/Simulation/RollingStocks
SubSystems/PowerTransmissions Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1734,8 +1734,8 @@ public List<MultiPositionController> CloneMPC(MSTSLocomotive locomotive)
1734
1734
1735
1735
public override void InitializeMoving ( )
1736
1736
{
1737
- AdhesionFilter . Reset ( 0.5f ) ;
1738
1737
base . InitializeMoving ( ) ;
1738
+ AdhesionFilter . Reset ( 0.5f ) ;
1739
1739
AverageForceN = MaxForceN * Train . MUThrottlePercent / 100 ;
1740
1740
float maxPowerW = MaxPowerW * Train . MUThrottlePercent * Train . MUThrottlePercent / 10000 ;
1741
1741
if ( AverageForceN * SpeedMpS > maxPowerW ) AverageForceN = maxPowerW / SpeedMpS ;
Original file line number Diff line number Diff line change @@ -1014,10 +1014,9 @@ public override void Initialize()
1014
1014
1015
1015
public override void InitializeMoving ( )
1016
1016
{
1017
+ base . InitializeMoving ( ) ;
1017
1018
PassengerCarPowerSupply ? . InitializeMoving ( ) ;
1018
1019
LocomotiveAxles . InitializeMoving ( ) ;
1019
-
1020
- base . InitializeMoving ( ) ;
1021
1020
}
1022
1021
1023
1022
/// <summary>
Original file line number Diff line number Diff line change @@ -269,7 +269,6 @@ public void Restore(BinaryReader inf)
269
269
AxleList . Add ( new Axle ( ) ) ;
270
270
AxleList [ i ] . Initialize ( ) ;
271
271
}
272
-
273
272
}
274
273
foreach ( var axle in AxleList )
275
274
axle . Restore ( inf ) ;
@@ -678,6 +677,7 @@ public void Restore(BinaryReader inf)
678
677
previousSlipPercent = inf . ReadSingle ( ) ;
679
678
previousSlipSpeedMpS = inf . ReadSingle ( ) ;
680
679
AxleForceN = inf . ReadSingle ( ) ;
680
+ AxleSpeedMpS = inf . ReadSingle ( ) ;
681
681
}
682
682
683
683
/// <summary>
@@ -689,6 +689,7 @@ public void Save(BinaryWriter outf)
689
689
outf . Write ( previousSlipPercent ) ;
690
690
outf . Write ( previousSlipSpeedMpS ) ;
691
691
outf . Write ( AxleForceN ) ;
692
+ outf . Write ( AxleSpeedMpS ) ;
692
693
}
693
694
694
695
/// <summary>
You can’t perform that action at this time.
0 commit comments