Skip to content

Commit 81e8a26

Browse files
committed
Automatic merge of T1.6-rc2-41-gacd714487 and 8 pull requests
- Pull request #1072 at 3033f96: Content Creation Shortcuts & Advanced Wagon Shape Interactions - Pull request #1086 at e10390b: Add Settings Exporter tool (copy settings to INI, etc) - Pull request #1091 at 35f0051: Automatic speed control - Pull request #1107 at f5eb3dc: Fix DPMode when last remote is moved to front. - Pull request #1108 at cd5c185: Fix Horn, Bell, and MU light conditions on AI trains - Pull request #1109 at 0190043: Fix Erroneous Detection of Departure Before Passenger Boarding Completed - Pull request #1082 at 5845a1a: Allow variable water level in glass gauge - Pull request #1081 at 689494b: Brake cuts power unification
10 parents dfb8670 + acd7144 + 3033f96 + e10390b + 35f0051 + f5eb3dc + cd5c185 + 0190043 + 5845a1a + 689494b commit 81e8a26

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ public virtual void Parse(string lowercasetoken, STFReader stf)
16331633
if (!stf.EndOfBlock())
16341634
{
16351635
FrontCoupler.Closed.ShapeDescriptor = stf.ReadString();
1636-
stf.SkipRestOfBlock();
1636+
stf.SkipRestOfBlock();
16371637
}
16381638
else
16391639
FrontCoupler.Closed.ShapeDescriptor = FrontCoupler.Closed.ShapeFileName + "d";
@@ -1646,7 +1646,7 @@ public virtual void Parse(string lowercasetoken, STFReader stf)
16461646
if (!stf.EndOfBlock())
16471647
{
16481648
FrontAirHose.Connected.ShapeDescriptor = stf.ReadString();
1649-
stf.SkipRestOfBlock();
1649+
stf.SkipRestOfBlock();
16501650
}
16511651
else
16521652
FrontAirHose.Connected.ShapeDescriptor = FrontAirHose.Connected.ShapeFileName + "d";
@@ -1659,7 +1659,7 @@ public virtual void Parse(string lowercasetoken, STFReader stf)
16591659
if (!stf.EndOfBlock())
16601660
{
16611661
RearCoupler.Closed.ShapeDescriptor = stf.ReadString();
1662-
stf.SkipRestOfBlock();
1662+
stf.SkipRestOfBlock();
16631663
}
16641664
else
16651665
RearCoupler.Closed.ShapeDescriptor = RearCoupler.Closed.ShapeFileName + "d";
@@ -1672,7 +1672,7 @@ public virtual void Parse(string lowercasetoken, STFReader stf)
16721672
if (!stf.EndOfBlock())
16731673
{
16741674
RearAirHose.Connected.ShapeDescriptor = stf.ReadString();
1675-
stf.SkipRestOfBlock();
1675+
stf.SkipRestOfBlock();
16761676
}
16771677
else
16781678
RearAirHose.Connected.ShapeDescriptor = RearAirHose.Connected.ShapeFileName + "d";
@@ -1692,7 +1692,7 @@ public virtual void Parse(string lowercasetoken, STFReader stf)
16921692
if (!stf.EndOfBlock())
16931693
{
16941694
FrontCoupler.Open.ShapeDescriptor = stf.ReadString();
1695-
stf.SkipRestOfBlock();
1695+
stf.SkipRestOfBlock();
16961696
}
16971697
else
16981698
FrontCoupler.Open.ShapeDescriptor = FrontCoupler.Open.ShapeFileName + "d";
@@ -1706,7 +1706,7 @@ public virtual void Parse(string lowercasetoken, STFReader stf)
17061706
if (!stf.EndOfBlock())
17071707
{
17081708
RearCoupler.Open.ShapeDescriptor = stf.ReadString();
1709-
stf.SkipRestOfBlock();
1709+
stf.SkipRestOfBlock();
17101710
}
17111711
else
17121712
RearCoupler.Open.ShapeDescriptor = RearCoupler.Open.ShapeFileName + "d";
@@ -1720,7 +1720,7 @@ public virtual void Parse(string lowercasetoken, STFReader stf)
17201720
if (!stf.EndOfBlock())
17211721
{
17221722
FrontAirHose.Disconnected.ShapeDescriptor = stf.ReadString();
1723-
stf.SkipRestOfBlock();
1723+
stf.SkipRestOfBlock();
17241724
}
17251725
else
17261726
FrontAirHose.Disconnected.ShapeDescriptor = FrontAirHose.Disconnected.ShapeFileName + "d";
@@ -1734,7 +1734,7 @@ public virtual void Parse(string lowercasetoken, STFReader stf)
17341734
if (!stf.EndOfBlock())
17351735
{
17361736
RearAirHose.Disconnected.ShapeDescriptor = stf.ReadString();
1737-
stf.SkipRestOfBlock();
1737+
stf.SkipRestOfBlock();
17381738
}
17391739
else
17401740
RearAirHose.Disconnected.ShapeDescriptor = RearAirHose.Disconnected.ShapeFileName + "d";
@@ -2665,7 +2665,7 @@ private void UpdateDriveWheelWeight(int index, float masskg, int numberofengine
26652665
}
26662666
}
26672667

2668-
private void UpdateTrainBaseResistance()
2668+
private void UpdateTrainBaseResistance()
26692669
{
26702670
IsBelowMergeSpeed = AbsSpeedMpS < MergeSpeedMpS;
26712671
IsStandStill = AbsSpeedMpS < 0.1f;
@@ -2902,7 +2902,7 @@ private void UpdateTrainBaseResistance_StartingFriction()
29022902
{
29032903
// Dtermine the starting friction factor based upon the type of bearing
29042904
float StartFrictionLoadN = StandstillFrictionN; // Starting friction
2905-
2905+
29062906
// Determine the starting resistance due to wheel bearing temperature
29072907
// Note reference values in lbf and US tons - converted to metric values as appropriate
29082908
// 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
@@ -3036,22 +3036,22 @@ private void UpdateTrainBaseResistance_DavisLowSpeed()
30363036
}
30373037

30383038
if (WheelBearingTemperatureDegC < LowTemperature)
3039-
{
3040-
// Set to snowing (frozen value)
3039+
{
3040+
// Set to snowing (frozen value)
30413041
StartFrictionInternalFactorN = LowTemperatureResistanceN;
3042-
}
3042+
}
30433043
else if (WheelBearingTemperatureDegC > HighTemeprature)
3044-
{
3045-
// Set to normal temperature value
3044+
{
3045+
// Set to normal temperature value
30463046
StartFrictionInternalFactorN = HighTemperatureResistanceN;
3047-
}
3048-
else
3049-
{
3050-
// Set to variable value as bearing heats and cools
3047+
}
3048+
else
3049+
{
3050+
// Set to variable value as bearing heats and cools
30513051
float LowGrad = (LowTemperatureResistanceN - HighTemperatureResistanceN) / (LowTemperature - HighTemeprature);
30523052
float LowIntersect = LowTemperatureResistanceN - (LowGrad * LowTemperature);
3053-
StartFrictionInternalFactorN = LowGrad * WheelBearingTemperatureDegC + LowIntersect;
3054-
}
3053+
StartFrictionInternalFactorN = LowGrad * WheelBearingTemperatureDegC + LowIntersect;
3054+
}
30553055

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

0 commit comments

Comments
 (0)