From 23768e34e8bb87f3e2e40aba178225333ac6f10a Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Fri, 28 Oct 2022 14:57:00 +1300 Subject: [PATCH] Update explosion lookups (#12250) --- .../Explosion/EntitySystems/ExplosionSystem.Processing.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs b/Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs index ec6305a1e2..6f8568d476 100644 --- a/Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs +++ b/Content.Server/Explosion/EntitySystems/ExplosionSystem.Processing.cs @@ -213,6 +213,7 @@ public sealed partial class ExplosionSystem : EntitySystem lookup.DynamicTree.QueryAabb(ref state, GridQueryCallback, gridBox, true); lookup.StaticTree.QueryAabb(ref state, GridQueryCallback, gridBox, true); lookup.SundriesTree.QueryAabb(ref state, GridQueryCallback, gridBox, true); + lookup.StaticSundriesTree.QueryAabb(ref state, GridQueryCallback, gridBox, true); // process those entities foreach (var xform in list) @@ -254,7 +255,6 @@ public sealed partial class ExplosionSystem : EntitySystem list.Clear(); lookup.DynamicTree.QueryAabb(ref state, GridQueryCallback, gridBox, true); - lookup.StaticTree.QueryAabb(ref state, GridQueryCallback, gridBox, true); lookup.SundriesTree.QueryAabb(ref state, GridQueryCallback, gridBox, true); foreach (var xform in list) @@ -311,6 +311,7 @@ public sealed partial class ExplosionSystem : EntitySystem lookup.DynamicTree.QueryAabb(ref state, SpaceQueryCallback, worldBox, true); lookup.StaticTree.QueryAabb(ref state, SpaceQueryCallback, worldBox, true); lookup.SundriesTree.QueryAabb(ref state, SpaceQueryCallback, worldBox, true); + lookup.StaticSundriesTree.QueryAabb(ref state, SpaceQueryCallback, worldBox, true); foreach (var xform in state.Item1) { @@ -325,7 +326,6 @@ public sealed partial class ExplosionSystem : EntitySystem // lookup is relatively minor computational cost, and throwing is disabled for nukes anyways. list.Clear(); lookup.DynamicTree.QueryAabb(ref state, SpaceQueryCallback, worldBox, true); - lookup.StaticTree.QueryAabb(ref state, SpaceQueryCallback, worldBox, true); lookup.SundriesTree.QueryAabb(ref state, SpaceQueryCallback, worldBox, true); foreach (var xform in list)