From 13760f401418a0dd9019c3030d77017fd2c5eccf Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Fri, 6 Aug 2021 23:59:33 +1000 Subject: [PATCH] Fix gas tile overlays on shuttles --- Content.Client/Atmos/Overlays/GasTileOverlay.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Content.Client/Atmos/Overlays/GasTileOverlay.cs b/Content.Client/Atmos/Overlays/GasTileOverlay.cs index 06b5c3bc4f..5c883d015d 100644 --- a/Content.Client/Atmos/Overlays/GasTileOverlay.cs +++ b/Content.Client/Atmos/Overlays/GasTileOverlay.cs @@ -40,9 +40,7 @@ namespace Content.Client.Atmos.Overlays if (!_gasTileOverlaySystem.HasData(mapGrid.Index)) continue; - var gridBounds = new Box2(mapGrid.WorldToLocal(worldBounds.BottomLeft), mapGrid.WorldToLocal(worldBounds.TopRight)); - - foreach (var tile in mapGrid.GetTilesIntersecting(gridBounds)) + foreach (var tile in mapGrid.GetTilesIntersecting(worldBounds)) { foreach (var (texture, color) in _gasTileOverlaySystem.GetOverlays(mapGrid.Index, tile.GridIndices)) {