File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ public void Initialize()
432
432
{
433
433
if ( Locomotive . Pantographs . State == PantographState . Up )
434
434
{
435
- Locomotive . LocomotivePowerSupply . HandleEvent ( PowerSupplyEvent . LowerPantograph ) ;
435
+ Locomotive . LocomotivePowerSupply . HandleEventFromTcs ( PowerSupplyEvent . LowerPantograph ) ;
436
436
}
437
437
} ;
438
438
Script . SetPantographUp = ( pantoID ) =>
@@ -442,7 +442,7 @@ public void Initialize()
442
442
Trace . TraceError ( $ "TCS script used bad pantograph ID { pantoID } ") ;
443
443
return ;
444
444
}
445
- Locomotive . LocomotivePowerSupply . HandleEvent ( PowerSupplyEvent . RaisePantograph , pantoID ) ;
445
+ Locomotive . LocomotivePowerSupply . HandleEventFromTcs ( PowerSupplyEvent . RaisePantograph , pantoID ) ;
446
446
} ;
447
447
Script . SetPantographDown = ( pantoID ) =>
448
448
{
@@ -451,7 +451,7 @@ public void Initialize()
451
451
Trace . TraceError ( $ "TCS script used bad pantograph ID { pantoID } ") ;
452
452
return ;
453
453
}
454
- Locomotive . LocomotivePowerSupply . HandleEvent ( PowerSupplyEvent . LowerPantograph , pantoID ) ;
454
+ Locomotive . LocomotivePowerSupply . HandleEventFromTcs ( PowerSupplyEvent . LowerPantograph , pantoID ) ;
455
455
} ;
456
456
Script . SetPowerAuthorization = ( value ) => PowerAuthorization = value ;
457
457
Script . SetCircuitBreakerClosingOrder = ( value ) => CircuitBreakerClosingOrder = value ;
You can’t perform that action at this time.
0 commit comments