From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 16 Feb 2025 15:55:41 +0000 (+1100) Subject: Ignore weather on rooved tiles (#35214) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=1984235f0f1dfc31652e6a2ed982c8d74e318482;p=space-station-14.git Ignore weather on rooved tiles (#35214) Might want more flexibility in future but weather needs some polish and this is fine for now. --- 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)