From 86d1150084851601e20a44d35f232ca7b2fca3e2 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 13 Feb 2022 11:08:54 +1300 Subject: [PATCH] Fix exhaling on salvage maps. (#6678) --- Content.Server/Body/Systems/RespiratorSystem.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Server/Body/Systems/RespiratorSystem.cs b/Content.Server/Body/Systems/RespiratorSystem.cs index 6218e0ea22..cf9bb1f5ec 100644 --- a/Content.Server/Body/Systems/RespiratorSystem.cs +++ b/Content.Server/Body/Systems/RespiratorSystem.cs @@ -139,7 +139,10 @@ namespace Content.Server.Body.Systems if (ev.Gas == null) { ev.Gas = _atmosSys.GetTileMixture(Transform(uid).Coordinates); - if (ev.Gas == null) return; + + // Walls and grids without atmos comp return null. I guess it makes sense to not be able to exhale in walls, + // but this also means you cannot exhale on some grids. + ev.Gas ??= GasMixture.SpaceGas; } var outGas = new GasMixture(ev.Gas.Volume);