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()
432432 {
433433 if ( Locomotive . Pantographs . State == PantographState . Up )
434434 {
435- Locomotive . LocomotivePowerSupply . HandleEvent ( PowerSupplyEvent . LowerPantograph ) ;
435+ Locomotive . LocomotivePowerSupply . HandleEventFromTcs ( PowerSupplyEvent . LowerPantograph ) ;
436436 }
437437 } ;
438438 Script . SetPantographUp = ( pantoID ) =>
@@ -442,7 +442,7 @@ public void Initialize()
442442 Trace . TraceError ( $ "TCS script used bad pantograph ID { pantoID } ") ;
443443 return ;
444444 }
445- Locomotive . LocomotivePowerSupply . HandleEvent ( PowerSupplyEvent . RaisePantograph , pantoID ) ;
445+ Locomotive . LocomotivePowerSupply . HandleEventFromTcs ( PowerSupplyEvent . RaisePantograph , pantoID ) ;
446446 } ;
447447 Script . SetPantographDown = ( pantoID ) =>
448448 {
@@ -451,7 +451,7 @@ public void Initialize()
451451 Trace . TraceError ( $ "TCS script used bad pantograph ID { pantoID } ") ;
452452 return ;
453453 }
454- Locomotive . LocomotivePowerSupply . HandleEvent ( PowerSupplyEvent . LowerPantograph , pantoID ) ;
454+ Locomotive . LocomotivePowerSupply . HandleEventFromTcs ( PowerSupplyEvent . LowerPantograph , pantoID ) ;
455455 } ;
456456 Script . SetPowerAuthorization = ( value ) => PowerAuthorization = value ;
457457 Script . SetCircuitBreakerClosingOrder = ( value ) => CircuitBreakerClosingOrder = value ;
You can’t perform that action at this time.
0 commit comments