Skip to content

Commit a11064f

Browse files
committed
Automatic merge of T1.6-rc8-59-g2eb7441b08 and 11 pull requests
- Pull request #1086 at e10390b: Add Settings Exporter tool (copy settings to INI, etc) - Pull request #1091 at e813c42: Automatic speed control - Pull request #1104 at 7919243: Handle simple adhesion within the axle module - Pull request #1115 at 270f22f: Do not activate ETS switch if no suitable cars are attached - Pull request #1120 at ba3c47f: Automatically Calculate Friction Values if Missing - Pull request #1121 at 91d2d26: Manually Override Articulation - Pull request #1124 at e241a0d: Built-in PBL2 brake controller - Pull request #1130 at 8ae6bb7: Fix F9 points to an incorrect car ID. - Pull request #1157 at 39cd994: Dynamic brake authorization by TCS - Pull request #1082 at 5845a1a: Allow variable water level in glass gauge - Pull request #1128 at 1d7643d: Particle Emitter Overhaul
13 parents 1d4c5de + 2eb7441 + e10390b + e813c42 + 7919243 + 270f22f + ba3c47f + 91d2d26 + e241a0d + 8ae6bb7 + 39cd994 + 5845a1a + 1d7643d commit a11064f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/CruiseControl.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ public void Parse(STFReader stf)
402402
case "modeswitchallowedwiththrottlenotatzero": ModeSwitchAllowedWithThrottleNotAtZero = stf.ReadBoolBlock(false); break;
403403
case "docomputenumberofaxles": DoComputeNumberOfAxles = stf.ReadBoolBlock(false); break;
404404
case "speeddeltafunctionmode":
405-
stf.MustMatch("(");
406-
var speedDeltaMode = stf.ReadString();
405+
var speedDeltaMode = stf.ReadStringBlock("");
407406
try
408407
{
409408
SpeedDeltaFunctionMode = (SpeedDeltaMode)Enum.Parse(typeof(SpeedDeltaMode), speedDeltaMode, true);
@@ -853,7 +852,11 @@ public void UpdateSpeedRegulatorModeChanges()
853852
}
854853
if (ForceRegulatorAutoWhenNonZeroSpeedSelected)
855854
{
856-
if (zeroSelectedSpeed && (!ASCSpeedTakesPriorityOverSpeedSelector || !ASCSetSpeedMpS.HasValue))
855+
if (ASCSpeedTakesPriorityOverSpeedSelector && ASCSetSpeedMpS.HasValue)
856+
{
857+
SpeedRegMode = SpeedRegulatorMode.Auto;
858+
}
859+
else if (zeroSelectedSpeed)
857860
{
858861
SpeedRegMode = SpeedRegulatorMode.Manual;
859862
}

0 commit comments

Comments
 (0)