@@ -286,7 +286,9 @@ public override void Initialize(bool handbrakeOn, float maxPressurePSI, float fu
286
286
if ( Car . Simulator . Settings . CorrectQuestionableBrakingParams && Car . CarLengthM <= 1 )
287
287
EmergResVolumeM3 = Math . Min ( 0.02f , EmergResVolumeM3 ) ;
288
288
289
- if ( Car . Simulator . Settings . CorrectQuestionableBrakingParams && ( Car as MSTSWagon ) . BrakeValve == MSTSWagon . BrakeValveType . None )
289
+ // Install a plain triple valve if no brake valve defined
290
+ // Do not install it for tenders if not defined, to allow tenders with straight brake only
291
+ if ( Car . Simulator . Settings . CorrectQuestionableBrakingParams && ( Car as MSTSWagon ) . BrakeValve == MSTSWagon . BrakeValveType . None && ( Car as MSTSWagon ) . WagonType != TrainCar . WagonTypes . Tender )
290
292
{
291
293
( Car as MSTSWagon ) . BrakeValve = MSTSWagon . BrakeValveType . TripleValve ;
292
294
Trace . TraceWarning ( "{0} does not define a brake valve, defaulting to a plain triple valve" , ( Car as MSTSWagon ) . WagFilePath ) ;
@@ -352,7 +354,7 @@ public void UpdateTripleValveState(float elapsedClockSeconds)
352
354
else
353
355
TripleValveState = ValveState . Lap ;
354
356
}
355
- else if ( valveType == MSTSWagon . BrakeValveType . TripleValve || valveType == MSTSWagon . BrakeValveType . Distributor )
357
+ else if ( valveType == MSTSWagon . BrakeValveType . TripleValve || valveType == MSTSWagon . BrakeValveType . DistributingValve )
356
358
{
357
359
if ( BrakeLine1PressurePSI < AuxResPressurePSI - 1 && EmergencyValveActuationRatePSIpS > 0 && ( prevBrakePipePressurePSI - BrakeLine1PressurePSI ) > Math . Max ( elapsedClockSeconds , 0.0001f ) * EmergencyValveActuationRatePSIpS )
358
360
TripleValveState = ValveState . Emergency ;
@@ -442,7 +444,7 @@ public override void Update(float elapsedClockSeconds)
442
444
}
443
445
444
446
// triple valve set to release pressure in brake cylinder and EP valve set
445
- if ( TripleValveState == ValveState . Release )
447
+ if ( TripleValveState == ValveState . Release && ( Car as MSTSWagon ) . BrakeValve != MSTSWagon . BrakeValveType . None )
446
448
{
447
449
if ( ( Car as MSTSWagon ) . EmergencyReservoirPresent )
448
450
{
0 commit comments