From 1984235f0f1dfc31652e6a2ed982c8d74e318482 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 17 Feb 2025 02:55:41 +1100 Subject: [PATCH] Ignore weather on rooved tiles (#35214) Might want more flexibility in future but weather needs some polish and this is fine for now. --- Content.Shared/Weather/SharedWeatherSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/Weather/SharedWeatherSystem.cs b/Content.Shared/Weather/SharedWeatherSystem.cs index acd4305538..ca870afc9e 100644 --- a/Content.Shared/Weather/SharedWeatherSystem.cs +++ b/Content.Shared/Weather/SharedWeatherSystem.cs @@ -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) -- 2.51.2