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)
2547
2547
if ( TractiveForceCurves == null )
2548
2548
{
2549
2549
powerW = Math . Min ( powerW , MaxPowerW * t * t * ( 1 - PowerReduction ) ) ;
2550
-
2551
- if ( AbsTractionSpeedMpS > MaxSpeedMpS - 0.05f )
2550
+
2551
+ if ( AbsTractionSpeedMpS > MaxSpeedMpS )
2552
2552
{
2553
- forceN = 20 * ( MaxSpeedMpS - AbsTractionSpeedMpS ) * MaxForceN * ( 1 - PowerReduction ) ;
2553
+ forceN = 0 ;
2554
2554
}
2555
- else if ( AbsTractionSpeedMpS > MaxSpeedMpS )
2555
+ else if ( AbsTractionSpeedMpS > MaxSpeedMpS - 0.05f )
2556
2556
{
2557
- forceN = 0 ;
2557
+ forceN = 20 * ( MaxSpeedMpS - AbsTractionSpeedMpS ) * MaxForceN * ( 1 - PowerReduction ) ;
2558
2558
}
2559
2559
else
2560
2560
{
You can’t perform that action at this time.
0 commit comments