Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ab29e1

Browse files
committed
Automatic merge of T1.4-68-g723f722c7 and 7 pull requests
- Pull request #510 at ca2494d: Add performance monitoring for diesel mechanic locomotives and new parameters - Pull request #525 at b5ac1d2: Add SignalTypeName and DrawStateName to SignalFeatures - Pull request #527 at 95b52ab: Brake cuts power refactor and new parameters - Pull request #531 at b2affac: Bug fix for https://bugs.launchpad.net/or/+bug/1950578 Dyn Brake setup state not disappearing in cab - Pull request #533 at 62a1c27: fix for shapes hidden by animations( 0 ) - Pull request #534 at ba3f85a: deletes RunActivityLAA.* post-build - Pull request #538 at c457f11: Delete binary paths if the ascii version or the tdb was modified. Blueprint: https://blueprints.launchpad.net/or/+spec/binary-timetable-paths
9 parents d104728 + 723f722 + ca2494d + b5ac1d2 + 95b52ab + b2affac + 62a1c27 + ba3f85a + c457f11 commit 3ab29e1

File tree

1 file changed

+3
-3
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies

1 file changed

+3
-3
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies/DieselEngine.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,8 @@ public void Update(float elapsedClockSeconds)
10461046
// During a manual gear change brake engine shaft speed to match wheel shaft speed
10471047
DemandedRPM = IdleRPM;
10481048

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)
10511051
{
10521052
GearBox.ManualGearChange = false;
10531053
GearBox.ManualGearBoxChangeOn = false;
@@ -1090,7 +1090,7 @@ public void Update(float elapsedClockSeconds)
10901090
DemandedRPM = IdleRPM;
10911091

10921092
// once engine speed is less then shaft speed reset gear change
1093-
if (RealRPM <= GearBox.ShaftRPM)
1093+
if (RealRPM <= GearBox.ShaftRPM || RealRPM == IdleRPM)
10941094
{
10951095
GearBox.ManualGearChange = false;
10961096
}

0 commit comments

Comments
 (0)