File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2015,9 +2015,6 @@ public override void Update(float elapsedClockSeconds)
2015
2015
2016
2016
// Pass Gearbox commands
2017
2017
2018
-
2019
-
2020
-
2021
2018
// Note - at the moment there is only one GearBox Controller created, but a gearbox for each diesel engine is created.
2022
2019
// This code keeps all gearboxes in the locomotive aligned with the first engine and gearbox.
2023
2020
if ( gearloco != null && gearloco . DieselTransmissionType == MSTSDieselLocomotive . DieselTransmissionTypes . Mechanic && GearBoxController . CurrentNotch != previousChangedGearBoxNotch )
@@ -2156,8 +2153,13 @@ public override void Update(float elapsedClockSeconds)
2156
2153
if ( de . State != DieselEngineState . Running )
2157
2154
de . Initialize ( ) ;
2158
2155
}
2156
+
2157
+ // if train is a geared locomotive then set it to automatic operation as AI driver can't operate manual gearboxes
2159
2158
if ( de . GearBox != null )
2160
2159
de . GearBox . GearBoxOperation = GearBoxOperation . Automatic ;
2160
+
2161
+ // Set gear to "low gear" at start.
2162
+ de . GearBox . currentGearIndex = de . GearBox . NumOfGears - 1 ;
2161
2163
}
2162
2164
}
2163
2165
}
You can’t perform that action at this time.
0 commit comments