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.
2 parents c7c80f1 + ec44b47 commit 23d6192Copy full SHA for 23d6192
Source/Orts.Simulation/Common/Scripting/PowerSupply/LocomotivePowerSupply.cs
@@ -376,7 +376,7 @@ protected void SignalEventToOtherTrainVehicles(PowerSupplyEvent evt)
376
/// </summary>
377
protected void SignalEventToOtherTrainVehiclesWithId(PowerSupplyEvent evt, int id)
378
{
379
- if (Locomotive == Train.LeadLocomotive)
+ if (Locomotive == Train.LeadLocomotive || (Train.LeadLocomotive == null && IndexOfLocomotive() == 0))
380
381
foreach (TrainCar car in Train.Cars)
382
0 commit comments