Rebuild excited groups if blocked airflow direction of tile has changed. (#12548)
This commit is contained in:
committed by
GitHub
parent
3a0c3b02b3
commit
3fbe85416e
@@ -31,7 +31,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
var moveEvent = new MoveEvent(airtight.Owner, default, default, Angle.Zero, xform.LocalRotation, xform, false);
|
||||
OnAirtightRotated(uid, airtight, ref moveEvent);
|
||||
}
|
||||
|
||||
|
||||
UpdatePosition(airtight);
|
||||
}
|
||||
|
||||
@@ -118,11 +118,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
var query = EntityManager.GetEntityQuery<AirtightComponent>();
|
||||
_explosionSystem.UpdateAirtightMap(gridId, pos, query);
|
||||
// TODO make atmos system use query
|
||||
_atmosphereSystem.UpdateAdjacent(gridUid, pos);
|
||||
_atmosphereSystem.InvalidateTile(gridUid, pos);
|
||||
|
||||
if(fixVacuum)
|
||||
_atmosphereSystem.FixTileVacuum(gridUid, pos);
|
||||
}
|
||||
|
||||
private AtmosDirection Rotate(AtmosDirection myDirection, Angle myAngle)
|
||||
|
||||
Reference in New Issue
Block a user