Fix exhaling on salvage maps. (#6678)
This commit is contained in:
@@ -139,7 +139,10 @@ namespace Content.Server.Body.Systems
|
|||||||
if (ev.Gas == null)
|
if (ev.Gas == null)
|
||||||
{
|
{
|
||||||
ev.Gas = _atmosSys.GetTileMixture(Transform(uid).Coordinates);
|
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);
|
var outGas = new GasMixture(ev.Gas.Volume);
|
||||||
|
|||||||
Reference in New Issue
Block a user