Skip to content

Commit 756716b

Browse files
committed
improve readability
1 parent c3d05c4 commit 756716b

File tree

1 file changed

+2
-2
lines changed
  • Source/Orts.Simulation/Simulation/Physics

1 file changed

+2
-2
lines changed

Source/Orts.Simulation/Simulation/Physics/Train.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5460,7 +5460,7 @@ public void UpdateCarSpeeds(float elapsedTime)
54605460
if (car is MSTSLocomotive) locoBehind = false;
54615461
if (car.SpeedMpS > 0)
54625462
{
5463-
car.SpeedMpS += car.TotalForceN / car.MassKG * elapsedTime;
5463+
car.SpeedMpS += (car.TotalForceN / car.MassKG) * elapsedTime;
54645464
if (car.SpeedMpS < 0)
54655465
car.SpeedMpS = 0;
54665466
// If car is manual braked, air_piped car or vacuum_piped, and preceeding car is at stop, then set speed to zero.
@@ -5473,7 +5473,7 @@ public void UpdateCarSpeeds(float elapsedTime)
54735473
}
54745474
else if (car.SpeedMpS < 0)
54755475
{
5476-
car.SpeedMpS += car.TotalForceN / car.MassKG * elapsedTime;
5476+
car.SpeedMpS += (car.TotalForceN / car.MassKG) * elapsedTime;
54775477
if (car.SpeedMpS > 0)
54785478
car.SpeedMpS = 0;
54795479
// If car is manual braked, air_piped car or vacuum_piped, and preceeding car is at stop, then set speed to zero.

0 commit comments

Comments
 (0)