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

remove duplicated EP bounceback

This commit is contained in:
milek7
2018-11-02 12:49:42 +01:00
parent d7dcfacdde
commit d052e8e82d

View File

@@ -657,7 +657,6 @@ void TTrain::set_master_controller( double const Position ) {
void TTrain::set_train_brake( double const Position ) {
auto const originalbrakeposition { static_cast<int>( 100.0 * mvOccupied->fBrakeCtrlPos ) };
mvOccupied->BrakeLevelSet( Position );
if( static_cast<int>( 100.0 * mvOccupied->fBrakeCtrlPos ) == originalbrakeposition ) { return; }
@@ -4972,18 +4971,6 @@ bool TTrain::Update( double const Deltatime )
}
}
}
if( ( mvOccupied->BrakeHandle == TBrakeHandle::FVel6 )
&& ( mvOccupied->fBrakeCtrlPos < 0.0 )
&& ( Global.iFeedbackMode < 3 ) ) {
// Odskakiwanie hamulce EP
if( false == (
( input::command == user_command::trainbrakeset )
|| ( input::command == user_command::trainbrakedecrease )
|| ( input::command == user_command::trainbrakecharging ) ) ) {
set_train_brake( 0 );
}
}
}
// McZapkie: predkosc wyswietlana na tachometrze brana jest z obrotow kol