Fix some atmos tiles not being added correctly.
This commit is contained in:
@@ -154,13 +154,14 @@ namespace Content.Server.GameObjects.Components.Atmos
|
|||||||
if (tile == null)
|
if (tile == null)
|
||||||
{
|
{
|
||||||
tile = new TileAtmosphere(this, _grid.Index, indices, new GasMixture(GetVolumeForCells(1)){Temperature = Atmospherics.T20C});
|
tile = new TileAtmosphere(this, _grid.Index, indices, new GasMixture(GetVolumeForCells(1)){Temperature = Atmospherics.T20C});
|
||||||
_tiles.Add(indices, tile);
|
_tiles[indices] = tile;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsSpace(indices))
|
if (IsSpace(indices))
|
||||||
{
|
{
|
||||||
tile.Air = new GasMixture(GetVolumeForCells(1));
|
tile.Air = new GasMixture(GetVolumeForCells(1));
|
||||||
tile.Air.MarkImmutable();
|
tile.Air.MarkImmutable();
|
||||||
|
_tiles[indices] = tile;
|
||||||
|
|
||||||
} else if (IsAirBlocked(indices))
|
} else if (IsAirBlocked(indices))
|
||||||
{
|
{
|
||||||
@@ -176,6 +177,7 @@ namespace Content.Server.GameObjects.Components.Atmos
|
|||||||
{
|
{
|
||||||
var adjacent = GetAdjacentTiles(indices);
|
var adjacent = GetAdjacentTiles(indices);
|
||||||
tile.Air = new GasMixture(GetVolumeForCells(1)){Temperature = Atmospherics.T20C};
|
tile.Air = new GasMixture(GetVolumeForCells(1)){Temperature = Atmospherics.T20C};
|
||||||
|
_tiles[indices] = tile;
|
||||||
|
|
||||||
var ratio = 1f / adjacent.Count;
|
var ratio = 1f / adjacent.Count;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user