File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2547,14 +2547,14 @@ public virtual float GetAvailableTractionForceN(float t)
25472547 if ( TractiveForceCurves == null )
25482548 {
25492549 powerW = Math . Min ( powerW , MaxPowerW * t * t * ( 1 - PowerReduction ) ) ;
2550-
2551- if ( AbsTractionSpeedMpS > MaxSpeedMpS - 0.05f )
2550+
2551+ if ( AbsTractionSpeedMpS > MaxSpeedMpS )
25522552 {
2553- forceN = 20 * ( MaxSpeedMpS - AbsTractionSpeedMpS ) * MaxForceN * ( 1 - PowerReduction ) ;
2553+ forceN = 0 ;
25542554 }
2555- else if ( AbsTractionSpeedMpS > MaxSpeedMpS )
2555+ else if ( AbsTractionSpeedMpS > MaxSpeedMpS - 0.05f )
25562556 {
2557- forceN = 0 ;
2557+ forceN = 20 * ( MaxSpeedMpS - AbsTractionSpeedMpS ) * MaxForceN * ( 1 - PowerReduction ) ;
25582558 }
25592559 else
25602560 {
You can’t perform that action at this time.
0 commit comments