Improves AirtightComponent.

- Atmos now nulls air in fully airblocked tiles ONLY if one of the airtight entities in it has NoAirWhenFullyAirBlocked to true.
- Fixes edge firelocks atmos airtight direction
- Fixes atmos debug overlay not accounting for angle 0 being south.
This commit is contained in:
Vera Aguilera Puerto
2021-03-08 14:57:05 +01:00
parent ca8a2e4502
commit d86623eed7
7 changed files with 35 additions and 10 deletions

View File

@@ -288,7 +288,19 @@ namespace Content.Server.GameObjects.Components.Atmos
} else if (isAirBlocked)
{
tile.Air = null;
var nullAir = false;
foreach (var airtight in GetObstructingComponents(indices))
{
if (airtight.NoAirWhenFullyAirBlocked)
{
nullAir = true;
break;
}
}
if(nullAir)
tile.Air = null;
}
else
{