17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-03 15:30:21 +01:00

Prevent overcharge by AI - count how long each vehicle is being under higher pressure

This commit is contained in:
maj00r
2026-09-08 19:53:06 +02:00
parent ac313f1f1d
commit a1e4e8d95b
4 changed files with 25 additions and 17 deletions

View File

@@ -4790,6 +4790,8 @@ void TMoverParameters::UpdatePipePressure(double dt)
if (CompressedVolume < 0.0)
CompressedVolume = 0.0;
PipeOverchargeTime = ( PipePress > HighPipePress + 0.2 ? PipeOverchargeTime + dt : 0.0 );
}
// *************************************************************************************************