Skip to content

Commit 037dbdf

Browse files
committed
Correct codacy error
1 parent fa510b0 commit 037dbdf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS/VacuumSinglePipe.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,10 @@ public override void Update(float elapsedClockSeconds)
581581
Car.BrakeShoeForceN = Car.MaxHandbrakeForceN * HandbrakePercent / 100;
582582
}
583583
}
584-
else Car.BrakeShoeForceN = Math.Max(Car.MaxBrakeForceN, Car.MaxHandbrakeForceN / 2);
584+
else
585+
{
586+
Car.BrakeShoeForceN = Math.Max(Car.MaxBrakeForceN, Car.MaxHandbrakeForceN / 2);
587+
}
585588

586589
float brakeShoeFriction = Car.GetBrakeShoeFrictionFactor();
587590
Car.HuDBrakeShoeFriction = Car.GetBrakeShoeFrictionCoefficientHuD();

0 commit comments

Comments
 (0)