mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-19 00:35:59 +01:00
Merge pull request #292 from MaSzyna-EU07/fix/en57-ep2-brake-charging
EN57 brakes: charging when hauled with the brake hose alone, Knorr EP brake only with control power
This commit is contained in:
@@ -2242,7 +2242,9 @@ void TTrain::OnCommand_wheelspinbrakeactivate(TTrain *Train, command_data const
|
||||
// visual feedback
|
||||
Train->ggAntiSlipButton.UpdateValue(1.0, Train->dsbPneumaticSwitch);
|
||||
|
||||
if (Train->mvOccupied->BrakeHandle == TBrakeHandle::St113 && Train->mvControlled->EpFuse == true)
|
||||
// the EP fuse is the cab car's (Ctrl+Z switches mvOccupied's), checked by SwitchEPBrake with the rest of
|
||||
// the control's supply
|
||||
if (Train->mvOccupied->BrakeHandle == TBrakeHandle::St113)
|
||||
{
|
||||
Train->mvOccupied->SwitchEPBrake(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user