Fix gas tile overlays on shuttles

This commit is contained in:
metalgearsloth
2021-08-06 23:59:33 +10:00
parent b7bc0dc0b0
commit 13760f4014

View File

@@ -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))
{