mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 06:19:19 +02:00
Fix EP fuse auto-(dis)engaging
When the Autorewident function is enabled, the EP fuse switch will no longer automatically engage or disengage if the player is controlling the train. This would happen for example when approaching a station.
This commit is contained in:
@@ -2236,7 +2236,10 @@ void TController::AutoRewident()
|
||||
}
|
||||
|
||||
BrakeSystem = consist_brake_system();
|
||||
mvOccupied->EpFuseSwitch( BrakeSystem == TBrakeSystem::ElectroPneumatic );
|
||||
// Change the EP fuse state only when AI is in charge, don't fiddle with controls when the user is controlling the vehicle
|
||||
if (AIControllFlag) {
|
||||
mvOccupied->EpFuseSwitch(BrakeSystem == TBrakeSystem::ElectroPneumatic);
|
||||
}
|
||||
|
||||
if( OrderCurrentGet() & ( Obey_train | Bank ) ) {
|
||||
// 4. Przeliczanie siły hamowania
|
||||
|
||||
Reference in New Issue
Block a user