mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 06:29:18 +02:00
securitysystem workarounds
This commit is contained in:
@@ -192,6 +192,9 @@ bool TSecuritySystem::is_cabsignal_beeping() const {
|
||||
}
|
||||
|
||||
bool TSecuritySystem::is_braking() const {
|
||||
if (!enabled)
|
||||
return false;
|
||||
|
||||
if (!power && (vigilance_enabled || cabsignal_enabled))
|
||||
return true;
|
||||
|
||||
@@ -4297,7 +4300,7 @@ void TMoverParameters::UpdatePipePressure(double dt)
|
||||
|| ( true == AlarmChainFlag )
|
||||
|| (( true == EIMCtrlEmergency)
|
||||
&& (LocalBrakePosA >= 1.0))
|
||||
|| SecuritySystem.is_braking()) && CabOccupied )
|
||||
|| SecuritySystem.is_braking()))
|
||||
/*
|
||||
// NOTE: disabled because 32 is 'load destroyed' flag, what does this have to do with emergency brake?
|
||||
// (if it's supposed to be broken coupler, such event sets alarmchainflag instead when appropriate)
|
||||
|
||||
Reference in New Issue
Block a user