File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1046,8 +1046,8 @@ public void Update(float elapsedClockSeconds)
1046
1046
// During a manual gear change brake engine shaft speed to match wheel shaft speed
1047
1047
DemandedRPM = IdleRPM ;
1048
1048
1049
- // once engine speed is less then shaft speed reset gear change
1050
- if ( RealRPM <= GearBox . ShaftRPM && GearBox . ShaftRPM < MaxRPM )
1049
+ // once engine speed is less then shaft speed reset gear change, or is at idle rpm, reset gear change
1050
+ if ( ( RealRPM <= GearBox . ShaftRPM && GearBox . ShaftRPM < MaxRPM ) || RealRPM == IdleRPM )
1051
1051
{
1052
1052
GearBox . ManualGearChange = false ;
1053
1053
GearBox . ManualGearBoxChangeOn = false ;
@@ -1090,7 +1090,7 @@ public void Update(float elapsedClockSeconds)
1090
1090
DemandedRPM = IdleRPM ;
1091
1091
1092
1092
// once engine speed is less then shaft speed reset gear change
1093
- if ( RealRPM <= GearBox . ShaftRPM )
1093
+ if ( RealRPM <= GearBox . ShaftRPM || RealRPM == IdleRPM )
1094
1094
{
1095
1095
GearBox . ManualGearChange = false ;
1096
1096
}
You can’t perform that action at this time.
0 commit comments