We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e66b25c commit 3daa5aaCopy full SHA for 3daa5aa
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies/CircuitBreaker.cs
@@ -164,8 +164,8 @@ public void InitializeMoving()
164
165
public void Update(float elapsedSeconds)
166
{
167
- if (Locomotive.Train.TrainType == Train.TRAINTYPE.AI && !Locomotive.Train.Autopilot || Locomotive.Train.TrainType == Train.TRAINTYPE.AI_AUTOGENERATE
168
- || Locomotive.Train.TrainType == Train.TRAINTYPE.AI_PLAYERHOSTING)
+ if (Locomotive.Train.TrainType == Train.TRAINTYPE.AI || Locomotive.Train.TrainType == Train.TRAINTYPE.AI_AUTOGENERATE
+ || Locomotive.Train.TrainType == Train.TRAINTYPE.AI_PLAYERHOSTING || Locomotive.Train.Autopilot)
169
170
State = CircuitBreakerState.Closed;
171
}
0 commit comments