]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add air alarm hysteresis (#29223)
authorPartmedia <kevinz5000@gmail.com>
Sat, 22 Jun 2024 15:22:17 +0000 (07:22 -0800)
committerGitHub <noreply@github.com>
Sat, 22 Jun 2024 15:22:17 +0000 (01:22 +1000)
Add firelock hysteresis

Content.Server/Doors/Systems/FirelockSystem.cs

index 7cb31b5b4e05776fca2c955f89688b4607468ea1..93ee18f6831035f8ec208743179be5462f01a5db 100644 (file)
@@ -93,7 +93,7 @@ namespace Content.Server.Doors.Systems
             if (!TryComp<DoorComponent>(uid, out var doorComponent))
                 return;
 
-            if (args.AlarmType == AtmosAlarmType.Normal || args.AlarmType == AtmosAlarmType.Warning)
+            if (args.AlarmType == AtmosAlarmType.Normal)
             {
                 if (doorComponent.State == DoorState.Closed)
                     _doorSystem.TryOpen(uid);