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 @@ -1740,8 +1740,8 @@ public List<MultiPositionController> CloneMPC(MSTSLocomotive locomotive)
1740
1740
1741
1741
public override void InitializeMoving ( )
1742
1742
{
1743
- AdhesionFilter . Reset ( 0.5f ) ;
1744
1743
base . InitializeMoving ( ) ;
1744
+ AdhesionFilter . Reset ( 0.5f ) ;
1745
1745
AverageForceN = MaxForceN * Train . MUThrottlePercent / 100 ;
1746
1746
float maxPowerW = MaxPowerW * Train . MUThrottlePercent * Train . MUThrottlePercent / 10000 ;
1747
1747
if ( AverageForceN * SpeedMpS > maxPowerW ) AverageForceN = maxPowerW / SpeedMpS ;
Original file line number Diff line number Diff line change @@ -1015,10 +1015,9 @@ public override void Initialize()
1015
1015
1016
1016
public override void InitializeMoving ( )
1017
1017
{
1018
+ base . InitializeMoving ( ) ;
1018
1019
PassengerCarPowerSupply ? . InitializeMoving ( ) ;
1019
1020
LocomotiveAxles . InitializeMoving ( ) ;
1020
-
1021
- base . InitializeMoving ( ) ;
1022
1021
}
1023
1022
1024
1023
/// <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