Fix for AI decoupling old Knorr/West locomotives

This commit is contained in:
Królik Uszasty
2019-03-23 08:52:47 +01:00
parent e4dca57de4
commit 8fddbadbaf
2 changed files with 7 additions and 0 deletions

View File

@@ -481,6 +481,12 @@ double TWest::GetPF( double const PP, double const dt, double const Vel )
dv = 0;
BrakeCyl->Flow(-dv);
if ((BrakeStatus & b_rls) == b_rls) //odluzniacz
dv = PF(0, CVP, 0.1 * SizeBC) * dt;
else
dv = 0;
BrakeCyl->Flow(-dv);
// hamulec EP
temp = BVP * int(EPS > 0);
dv = PF(temp, LBP, 0.0015) * dt * EPS * EPS * int(LBP * EPS < MaxBP * LoadC);