Skip to content

Commit f15bb6b

Browse files
committed
Use slip control also for dynamic braking
1 parent 03ccdc6 commit f15bb6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,7 +2750,7 @@ protected virtual void UpdateTractiveForce(float elapsedClockSeconds)
27502750
}
27512751
else if (SlipControlSystem == SlipControlType.CutPower)
27522752
{
2753-
if (!DynamicBrake)
2753+
if (axle.DriveForceN != 0)
27542754
{
27552755
if (axle.HuDIsWheelSlip) SlipControlActive[i] = true;
27562756
}
@@ -2764,7 +2764,7 @@ protected virtual void UpdateTractiveForce(float elapsedClockSeconds)
27642764
}
27652765
else if (SlipControlSystem == SlipControlType.ReduceForce)
27662766
{
2767-
if (!DynamicBrake && axle.DriveForceN != 0 && AdvancedAdhesionModel)
2767+
if (axle.DriveForceN != 0 && (AdvancedAdhesionModel || !AntiSlip))
27682768
{
27692769
if (axle.SlipPercent > axle.SlipWarningTresholdPercent) SlipControlActive[i] = true;
27702770
}

0 commit comments

Comments
 (0)