Slight explosively depressurize cleanup.
This commit is contained in:
@@ -376,12 +376,7 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
otherTile.MonstermosInfo.LastCycle = cycleNum;
|
otherTile.MonstermosInfo.LastCycle = cycleNum;
|
||||||
otherTile.MonstermosInfo.CurrentTransferDirection = AtmosDirection.Invalid;
|
otherTile.MonstermosInfo.CurrentTransferDirection = AtmosDirection.Invalid;
|
||||||
// Tiles in the _depressurizeTiles array cannot have null air.
|
// Tiles in the _depressurizeTiles array cannot have null air.
|
||||||
if (otherTile.Air!.Immutable)
|
if (!otherTile.Air!.Immutable)
|
||||||
{
|
|
||||||
_depressurizeSpaceTiles[spaceTileCount++] = otherTile;
|
|
||||||
otherTile.PressureSpecificTarget = otherTile;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
for (var j = 0; j < Atmospherics.Directions; j++)
|
for (var j = 0; j < Atmospherics.Directions; j++)
|
||||||
{
|
{
|
||||||
@@ -400,8 +395,15 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
if (tileCount >= limit) break;
|
if (tileCount >= limit) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_depressurizeSpaceTiles[spaceTileCount++] = otherTile;
|
||||||
|
otherTile.PressureSpecificTarget = otherTile;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tileCount < limit && spaceTileCount < limit)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (tileCount >= limit || spaceTileCount >= limit)
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user