Skip to content

Commit 9a0a46e

Browse files
committed
Revert "Further adjustment to brakes for control car"
This reverts commit 2268ce1.
1 parent 2268ce1 commit 9a0a46e

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public enum SoundState
130130
public float MaxCurrentA = 0;
131131
public float MaxSpeedMpS = 1e3f;
132132
public float UnloadingSpeedMpS;
133-
public float MainResPressurePSI;
133+
public float MainResPressurePSI = 130;
134134
public bool CompressorIsOn;
135135
public float AverageForceN;
136136
public float PowerOnDelayS;
@@ -1325,25 +1325,14 @@ public override void Initialize()
13251325
{
13261326
MaxMainResPressurePSI = 130;
13271327
}
1328-
}
13291328

1330-
MainResPressurePSI = MaxMainResPressurePSI;
1329+
}
13311330

13321331
if (MainResVolumeM3 == 0)
13331332
{
13341333
if (EngineType == EngineTypes.Control)
13351334
{
1336-
FindControlActiveLocomotive();
1337-
1338-
if (ControlActiveLocomotive != null)
1339-
{
1340-
MainResVolumeM3 = ControlActiveLocomotive.MainResVolumeM3;
1341-
}
1342-
else
1343-
{
1344-
MainResVolumeM3 = 0.3f;
1345-
}
1346-
1335+
MainResVolumeM3 = 0.01f;
13471336
}
13481337
else
13491338
{
@@ -1809,7 +1798,7 @@ public override void Update(float elapsedClockSeconds)
18091798
}
18101799

18111800
}
1812-
else // if (EngineType != EngineTypes.Control) // TODO - Control trailers would not have compressors, but if they do then need to be linked to power supply requirements
1801+
else if (EngineType != EngineTypes.Control) // TODO - Control trailers would not have compressors, but if they do then need to be linked to power supply requirements
18131802
{
18141803
UpdateCompressor(elapsedClockSeconds);
18151804
}

0 commit comments

Comments
 (0)