Skip to content

Commit 6ac96f9

Browse files
authored
Merge pull request #935 from peternewell/diesel-mechanic-bug
Correct bug created in diesel electric locomotive
2 parents 874405e + 7d04839 commit 6ac96f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,10 +2156,13 @@ public override void Update(float elapsedClockSeconds)
21562156

21572157
// if train is a geared locomotive then set it to automatic operation as AI driver can't operate manual gearboxes
21582158
if (de.GearBox != null)
2159+
{
21592160
de.GearBox.GearBoxOperation = GearBoxOperation.Automatic;
21602161

2161-
// Set gear to "low gear" at start.
2162-
de.GearBox.currentGearIndex = de.GearBox.NumOfGears - 1;
2162+
// Set gear to at start.
2163+
de.GearBox.currentGearIndex = de.GearBox.NumOfGears - 1;
2164+
}
2165+
21632166
}
21642167
}
21652168
}

0 commit comments

Comments
 (0)