@@ -278,7 +278,7 @@ protected virtual void AssignScriptFunctions()
278278 {
279279 DieselEngineState state = DieselEngineState . Unavailable ;
280280
281- foreach ( MSTSDieselLocomotive locomotive in Train . Cars . OfType < MSTSDieselLocomotive > ( ) . Where ( ( MSTSLocomotive locomotive ) => { return locomotive . AcceptMUSignals ; } ) )
281+ foreach ( MSTSDieselLocomotive locomotive in Train . Cars . OfType < MSTSDieselLocomotive > ( ) . Where ( ( MSTSLocomotive locomotive ) => { return locomotive . RemoteControlGroup != - 1 ; } ) )
282282 {
283283 if ( locomotive == Simulator . PlayerLocomotive )
284284 {
@@ -330,7 +330,7 @@ protected virtual void AssignScriptFunctions()
330330 {
331331 foreach ( MSTSLocomotive locomotive in Locomotive . Train . Cars . OfType < MSTSLocomotive > ( ) )
332332 {
333- if ( locomotive != Locomotive && locomotive != Locomotive . Train . LeadLocomotive && locomotive . AcceptMUSignals )
333+ if ( locomotive != Locomotive && locomotive != Locomotive . Train . LeadLocomotive && locomotive . RemoteControlGroup != - 1 )
334334 {
335335 locomotive . LocomotivePowerSupply . HandleEventFromLeadLocomotive ( evt ) ;
336336 }
@@ -343,7 +343,7 @@ protected virtual void AssignScriptFunctions()
343343 {
344344 foreach ( MSTSLocomotive locomotive in Locomotive . Train . Cars . OfType < MSTSLocomotive > ( ) )
345345 {
346- if ( locomotive != Locomotive && locomotive != Locomotive . Train . LeadLocomotive && locomotive . AcceptMUSignals )
346+ if ( locomotive != Locomotive && locomotive != Locomotive . Train . LeadLocomotive && locomotive . RemoteControlGroup != - 1 )
347347 {
348348 locomotive . LocomotivePowerSupply . HandleEventFromLeadLocomotive ( evt , id ) ;
349349 }
@@ -356,7 +356,7 @@ protected virtual void AssignScriptFunctions()
356356 {
357357 foreach ( TrainCar car in Locomotive . Train . Cars )
358358 {
359- if ( car != Locomotive && car != Locomotive . Train . LeadLocomotive && car . AcceptMUSignals )
359+ if ( car != Locomotive && car != Locomotive . Train . LeadLocomotive && car . RemoteControlGroup != - 1 )
360360 {
361361 car . PowerSupply ? . HandleEventFromLeadLocomotive ( evt ) ;
362362 }
@@ -369,7 +369,7 @@ protected virtual void AssignScriptFunctions()
369369 {
370370 foreach ( TrainCar car in Locomotive . Train . Cars )
371371 {
372- if ( car != Locomotive && car != Locomotive . Train . LeadLocomotive && car . AcceptMUSignals )
372+ if ( car != Locomotive && car != Locomotive . Train . LeadLocomotive && car . RemoteControlGroup != - 1 )
373373 {
374374 car . PowerSupply ? . HandleEventFromLeadLocomotive ( evt , id ) ;
375375 }
@@ -380,7 +380,7 @@ protected virtual void AssignScriptFunctions()
380380 {
381381 bool helperFound = false ; //this avoids that locomotive engines toggle in opposite directions
382382
383- foreach ( MSTSDieselLocomotive locomotive in Train . Cars . OfType < MSTSDieselLocomotive > ( ) . Where ( ( MSTSLocomotive locomotive ) => { return locomotive . AcceptMUSignals ; } ) )
383+ foreach ( MSTSDieselLocomotive locomotive in Train . Cars . OfType < MSTSDieselLocomotive > ( ) . Where ( ( MSTSLocomotive locomotive ) => { return locomotive . RemoteControlGroup != - 1 ; } ) )
384384 {
385385 if ( locomotive == Simulator . PlayerLocomotive )
386386 {
0 commit comments