File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Source/Orts.Simulation/Simulation/RollingStocks Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2699,7 +2699,9 @@ protected virtual void UpdateCompressor(float elapsedClockSeconds)
2699
2699
bool syncCompressor = false ;
2700
2700
2701
2701
// Compressor synchronization is ignored if 5 psi above the high setpoint
2702
- if ( MainResPressurePSI < MaxMainResPressurePSI + 5.0f && LocomotivePowerSupply . AuxiliaryPowerSupplyState == PowerSupplyState . PowerOn )
2702
+ // Only accept synchronization if MU cable is connected and locomotive power supply is on
2703
+ if ( RemoteControlGroup != - 1 && MainResPressurePSI < MaxMainResPressurePSI + 5.0f
2704
+ && LocomotivePowerSupply . AuxiliaryPowerSupplyState == PowerSupplyState . PowerOn )
2703
2705
{
2704
2706
foreach ( List < TrainCar > locoGroup in Train . LocoGroups )
2705
2707
{
@@ -2708,7 +2710,7 @@ protected virtual void UpdateCompressor(float elapsedClockSeconds)
2708
2710
foreach ( TrainCar locoCar in locoGroup )
2709
2711
{
2710
2712
if ( locoCar is MSTSLocomotive loco )
2711
- syncCompressor |= ( locoGroup . Contains ( this as TrainCar ) || ( CompressorIsMUControlled && loco . CompressorIsMUControlled ) )
2713
+ syncCompressor |= loco . RemoteControlGroup != - 1 && ( locoGroup . Contains ( this as TrainCar ) || ( CompressorIsMUControlled && loco . CompressorIsMUControlled ) )
2712
2714
&& loco . CompressorIsOn && loco . MainResPressurePSI < loco . MaxMainResPressurePSI ;
2713
2715
2714
2716
// No need to check repeatedly if we already know to sync compressors
You can’t perform that action at this time.
0 commit comments