]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Ignore weather on rooved tiles (#35214)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 16 Feb 2025 15:55:41 +0000 (02:55 +1100)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2025 15:55:41 +0000 (16:55 +0100)
Might want more flexibility in future but weather needs some polish and this is fine for now.

Content.Shared/Weather/SharedWeatherSystem.cs

index acd430553882de92ebfa1ba767ecf0ab6d79abd0..ca870afc9eb8fc402c0eee2ff4678aa5d5a3a889 100644 (file)
@@ -43,6 +43,9 @@ public abstract class SharedWeatherSystem : EntitySystem
         if (tileRef.Tile.IsEmpty)
             return true;
 
+        if ((tileRef.Tile.Flags & (byte) TileFlag.Roof) == (byte) TileFlag.Roof)
+            return false;
+
         var tileDef = (ContentTileDefinition) _tileDefManager[tileRef.Tile.TypeId];
 
         if (!tileDef.Weather)