From 17ea79076ae8f5015433b8d4f0eeb3b28fc513a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Thu, 3 Sep 2020 15:31:42 +0200 Subject: [PATCH] AddActiveTile doesn't check if the tile's gasmixture is null anymore. Fixes race condition where an airtight tile without a gas mixture wouldn't become active after the vacuum is fixed. --- .../GameObjects/Components/Atmos/GridAtmosphereComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Atmos/GridAtmosphereComponent.cs b/Content.Server/GameObjects/Components/Atmos/GridAtmosphereComponent.cs index 1e24393305..d89fdd973f 100644 --- a/Content.Server/GameObjects/Components/Atmos/GridAtmosphereComponent.cs +++ b/Content.Server/GameObjects/Components/Atmos/GridAtmosphereComponent.cs @@ -281,7 +281,7 @@ namespace Content.Server.GameObjects.Components.Atmos public void AddActiveTile(TileAtmosphere? tile) { if (!Owner.TryGetComponent(out IMapGridComponent? mapGrid)) return; - if (tile?.GridIndex != mapGrid.Grid.Index || tile?.Air == null) return; + if (tile?.GridIndex != mapGrid.Grid.Index) return; tile.Excited = true; _activeTiles.Add(tile); }