File tree 1 file changed +2
-2
lines changed
Source/Orts.Simulation/Simulation/Physics
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21666,7 +21666,7 @@ public void UpdateRemoteTrainPos(float elapsedClockSeconds)
21666
21666
{
21667
21667
car.SpeedMpS = SpeedMpS;
21668
21668
if (car.Flipped) car.SpeedMpS = -car.SpeedMpS;
21669
- car.AbsSpeedMpS = car.AbsSpeedMpS * (1 - elapsedClockSeconds ) + targetSpeedMpS * elapsedClockSeconds;
21669
+ car.AbsSpeedMpS = car.AbsSpeedMpS * (1 - elapsedClockSeconds ) + Math.Abs( targetSpeedMpS) * elapsedClockSeconds;
21670
21670
if (car.IsDriveable && car is MSTSWagon)
21671
21671
{
21672
21672
(car as MSTSWagon).WheelSpeedMpS = SpeedMpS;
@@ -21685,7 +21685,7 @@ public void UpdateRemoteTrainPos(float elapsedClockSeconds)
21685
21685
else if (car is MSTSSteamLocomotive)
21686
21686
{
21687
21687
(car as MSTSSteamLocomotive).Variable1 = car.AbsSpeedMpS / car.DriverWheelRadiusM / MathHelper.Pi * 5;
21688
- (car as MSTSSteamLocomotive).Variable2 = 0.7f ;
21688
+ (car as MSTSSteamLocomotive).Variable2 = 70f ;
21689
21689
}
21690
21690
}
21691
21691
else if (car is MSTSLocomotive)
You can’t perform that action at this time.
0 commit comments