]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix Airlock Crushing Animation (#34523)
authorBooblesnoot42 <108703193+Booblesnoot42@users.noreply.github.com>
Sat, 19 Apr 2025 00:57:17 +0000 (20:57 -0400)
committerGitHub <noreply@github.com>
Sat, 19 Apr 2025 00:57:17 +0000 (20:57 -0400)
fixed issue

Content.Shared/Doors/Systems/SharedDoorSystem.cs

index 4d92cf9681f080174c6d2e9016aa1da4f39534cf..a0dba80bd92888ab297092058810cf34fdb6bba4 100644 (file)
@@ -768,10 +768,13 @@ public abstract partial class SharedDoorSystem : EntitySystem
         var door = ent.Comp;
         door.NextStateChange = null;
 
-        if (door.CurrentlyCrushing.Count > 0)
+        if (door.CurrentlyCrushing.Count > 0 && door.State != DoorState.Opening)
+        {
             // This is a closed door that is crushing people and needs to auto-open. Note that we don't check "can open"
             // here. The door never actually finished closing and we don't want people to get stuck inside of doors.
             StartOpening(ent, door);
+            return;
+        }
 
         switch (door.State)
         {