Skip to content

Commit 4006f8a

Browse files
authored
And make brake synchronization operator precedence more obvious
1 parent 55ab04e commit 4006f8a

File tree

1 file changed

+3
-3
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS

1 file changed

+3
-3
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/Brakes/MSTS/AirSinglePipe.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,9 +1261,9 @@ protected static void PropagateBrakeLinePressures(float elapsedClockSeconds, Tra
12611261
{
12621262
// Only sync application/release on DP units if both the lead unit AND the DP lead unit are set to synchronize
12631263
// Lead locomotive will always be allowed to apply/release
1264-
bool syncApplication = loco == lead || loco.DPSyncTrainApplication && lead.DPSyncTrainApplication;
1265-
bool syncRelease = loco == lead || loco.DPSyncTrainRelease && lead.DPSyncTrainRelease;
1266-
bool syncEmergency = loco == lead || loco.DPSyncEmergency && lead.DPSyncEmergency;
1264+
bool syncApplication = loco == lead || (loco.DPSyncTrainApplication && lead.DPSyncTrainApplication);
1265+
bool syncRelease = loco == lead || (loco.DPSyncTrainRelease && lead.DPSyncTrainRelease);
1266+
bool syncEmergency = loco == lead || (loco.DPSyncEmergency && lead.DPSyncEmergency);
12671267

12681268
tempBrakePipeFlow = 0.0f;
12691269

0 commit comments

Comments
 (0)