]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix firelocks failing to drop fast enough (#38918)
authorArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Wed, 16 Jul 2025 03:18:55 +0000 (20:18 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Jul 2025 03:18:55 +0000 (20:18 -0700)
Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs

index cca529fd58758f771a79f978c8b596b1687d281a..24463442cdf82bb174950aef41ed2208677b9899 100644 (file)
@@ -596,8 +596,17 @@ namespace Content.Server.Atmos.EntitySystems
             if (!reconsiderAdjacent)
                 return;
 
+            // Before updating the adjacent tile flags that determine whether air is allowed to flow
+            // or not, we explicitly update airtight data on these tiles right now.
+            // This ensures that UpdateAdjacentTiles has updated data before updating flags.
+            // This allows monstermos' floodfill check that determines if firelocks have dropped
+            // to work correctly.
+            UpdateAirtightData(ent.Owner, ent.Comp1, ent.Comp3, tile);
+            UpdateAirtightData(ent.Owner, ent.Comp1, ent.Comp3, other);
+
             UpdateAdjacentTiles(ent, tile);
             UpdateAdjacentTiles(ent, other);
+
             InvalidateVisuals(ent, tile);
             InvalidateVisuals(ent, other);
         }