Skip to content

Commit 9e18302

Browse files
committed
Automatic merge of T1.6-115-g0d2de70b7 and 12 pull requests
- Pull request #1082 at 8538170: Allow variable water level in glass gauge - Pull request #1156 at f46d5f2: Fix incorrectly disabled options in train operations window - Pull request #1091 at 492795a: Automatic speed control - Pull request #1121 at 91d2d26: Manually Override Articulation - Pull request #1124 at e241a0d: Built-in PBL2 brake controller - Pull request #1128 at d116396: Particle Emitter Overhaul - Pull request #1157 at 39cd994: Dynamic brake authorization by TCS - Pull request #1159 at 48c9a63: Skip OR warnings about TSRE-specific token Ruler - Pull request #1163 at 2f9e292: Fix: Crash when using Camera 8 and F9. - Pull request #1164 at 1ad9889: Fix: F9 crashes with a front coupled single steam locomotive by Csantucci. - Pull request #1165 at 168c27c: docs: Add code guidelines for logging - Pull request #1160 at 9dc6b3b: Route Based TTrack Sounds
14 parents 70a14ed + 0d2de70 + 8538170 + f46d5f2 + 492795a + 91d2d26 + e241a0d + d116396 + 39cd994 + 48c9a63 + 2f9e292 + 1ad9889 + 168c27c + 9dc6b3b commit 9e18302

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSWagon.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ private void UpdateDriveWheelWeight(int index, float masskg, int numberofengine
24162416
}
24172417
}
24182418

2419-
private void UpdateTrainBaseResistance()
2419+
private void UpdateTrainBaseResistance()
24202420
{
24212421
IsBelowMergeSpeed = AbsSpeedMpS < MergeSpeedMpS;
24222422
IsStandStill = AbsSpeedMpS < 0.1f;
@@ -2661,7 +2661,7 @@ private void UpdateTrainBaseResistance_StartingFriction()
26612661
{
26622662
// Dtermine the starting friction factor based upon the type of bearing
26632663
float StartFrictionLoadN = StandstillFrictionN; // Starting friction
2664-
2664+
26652665
// Determine the starting resistance due to wheel bearing temperature
26662666
// Note reference values in lbf and US tons - converted to metric values as appropriate
26672667
// At -10 DegC it will be equal to the snowing value, as the temperature increases to 25 DegC, it will move towards the summer value
@@ -2795,22 +2795,22 @@ private void UpdateTrainBaseResistance_DavisLowSpeed()
27952795
}
27962796

27972797
if (WheelBearingTemperatureDegC < LowTemperature)
2798-
{
2799-
// Set to snowing (frozen value)
2798+
{
2799+
// Set to snowing (frozen value)
28002800
StartFrictionInternalFactorN = LowTemperatureResistanceN;
2801-
}
2801+
}
28022802
else if (WheelBearingTemperatureDegC > HighTemeprature)
2803-
{
2804-
// Set to normal temperature value
2803+
{
2804+
// Set to normal temperature value
28052805
StartFrictionInternalFactorN = HighTemperatureResistanceN;
2806-
}
2807-
else
2808-
{
2809-
// Set to variable value as bearing heats and cools
2806+
}
2807+
else
2808+
{
2809+
// Set to variable value as bearing heats and cools
28102810
float LowGrad = (LowTemperatureResistanceN - HighTemperatureResistanceN) / (LowTemperature - HighTemeprature);
28112811
float LowIntersect = LowTemperatureResistanceN - (LowGrad * LowTemperature);
2812-
StartFrictionInternalFactorN = LowGrad * WheelBearingTemperatureDegC + LowIntersect;
2813-
}
2812+
StartFrictionInternalFactorN = LowGrad * WheelBearingTemperatureDegC + LowIntersect;
2813+
}
28142814

28152815
// Determine the track starting resistance, based upon the axle loading of the wagon
28162816
float LowLoadGrade = 800.0f;

0 commit comments

Comments
 (0)