mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 09:19:18 +02:00
(separate shp reset) add handling of SeparateAcknowledge flag
This commit is contained in:
@@ -132,10 +132,11 @@ void TSecuritySystem::update(double dt, double vel, bool pwr, int cab) {
|
||||
press_timer = 0.0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
bool just_powered_on = !power && pwr;
|
||||
bool just_activated = CabDependent && (cabactive != cab);
|
||||
|
||||
/* enabling battery */
|
||||
if (!DebugModeFlag && cabsignal_enabled && (just_powered_on || just_activated)) {
|
||||
cabsignal_active = true;
|
||||
alert_timer = SoundSignalDelay;
|
||||
@@ -162,6 +163,10 @@ void TSecuritySystem::set_cabsignal() {
|
||||
cabsignal_active = true;
|
||||
}
|
||||
|
||||
bool TSecuritySystem::has_separate_acknowledge() const {
|
||||
return separate_acknowledge;
|
||||
}
|
||||
|
||||
bool TSecuritySystem::is_blinking() const {
|
||||
if (!power)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user