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:
13
Train.cpp
13
Train.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user