16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 06:29:18 +02:00

Fixed BrakeHandle type MHZ_EN57 and brake operation mode selector

This commit is contained in:
Królik Uszasty
2018-04-17 22:42:26 +02:00
committed by tmj-fstate
parent bb87a63eed
commit fc1f57a5d4
6 changed files with 47 additions and 1 deletions

View File

@@ -3025,7 +3025,7 @@ bool TDynamicObject::Update(double dt, double dt1)
}
auto FzadED { 0.0 };
if( ( MoverParameters->EpFuse )
if( ( MoverParameters->EpFuse && (MoverParameters->BrakeHandle != MHZ_EN57))
|| ( ( MoverParameters->BrakeHandle == MHZ_EN57 )
&& ( MoverParameters->BrakeOpModeFlag & bom_MED ) ) ) {
FzadED = std::min( Fzad, FmaxED );