Skip to content

Commit cf687d4

Browse files
committed
Disable low voltage power supply update for AI trains
1 parent b20ca94 commit cf687d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,6 @@ public override void Update(float elapsedClockSeconds)
20472047

20482048
TrainControlSystem.Update(elapsedClockSeconds);
20492049

2050-
LocomotivePowerSupply?.Update(elapsedClockSeconds);
20512050
UpdateControllers(elapsedClockSeconds);
20522051

20532052
// Train Heading - only check the lead locomotive otherwise flipped locomotives further in consist will overwrite the train direction
@@ -2204,6 +2203,9 @@ public override void Update(float elapsedClockSeconds)
22042203

22052204
//Force to display
22062205
FilteredMotiveForceN = CurrentFilter.Filter(MotiveForceN, elapsedClockSeconds);
2206+
2207+
// Only update power supply for player driven locomotives
2208+
LocomotivePowerSupply?.Update(elapsedClockSeconds);
22072209
break;
22082210
default:
22092211
break;

0 commit comments

Comments
 (0)