Anomaly cleanup (#14781)
This commit is contained in:
@@ -49,7 +49,7 @@ public sealed class PyroclasticAnomalySystem : EntitySystem
|
||||
{
|
||||
foreach (var ind in _atmosphere.GetAdjacentTiles(grid.Value, indices))
|
||||
{
|
||||
var mix = _atmosphere.GetTileMixture(grid, map, indices, true);
|
||||
var mix = _atmosphere.GetTileMixture(grid, map, ind, true);
|
||||
if (mix is not { })
|
||||
continue;
|
||||
|
||||
@@ -65,10 +65,9 @@ public sealed class PyroclasticAnomalySystem : EntitySystem
|
||||
{
|
||||
base.Update(frameTime);
|
||||
|
||||
foreach (var (pyro, anom, xform) in EntityQuery<PyroclasticAnomalyComponent, AnomalyComponent, TransformComponent>())
|
||||
var query = EntityQueryEnumerator<PyroclasticAnomalyComponent, AnomalyComponent, TransformComponent>();
|
||||
while (query.MoveNext(out var ent, out var pyro, out var anom, out var xform))
|
||||
{
|
||||
var ent = pyro.Owner;
|
||||
|
||||
var grid = xform.GridUid;
|
||||
var map = xform.MapUid;
|
||||
var indices = _xform.GetGridOrMapTilePosition(ent, xform);
|
||||
|
||||
Reference in New Issue
Block a user