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:
@@ -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 );
|
||||
}
|
||||
|
||||
// *************************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user