From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sun, 16 Feb 2025 02:10:39 +0000 (+1100) Subject: Docking allocs reduc (#34965) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=fb1d180c7d0133533218b273d5aff87c848c0b81;p=space-station-14.git Docking allocs reduc (#34965) Stuff I had unstaged. --- diff --git a/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs b/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs index aabfaa31dd..8435075a69 100644 --- a/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs +++ b/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs @@ -323,7 +323,9 @@ public sealed partial class DockingSystem // If it's a map check no hard collidable anchored entities overlap if (isMap) { - foreach (var tile in _mapSystem.GetLocalTilesIntersecting(gridEntity.Owner, gridEntity.Comp, aabb)) + var localTiles = _mapSystem.GetLocalTilesEnumerator(gridEntity.Owner, gridEntity.Comp, aabb); + + while (localTiles.MoveNext(out var tile)) { var anchoredEnumerator = _mapSystem.GetAnchoredEntitiesEnumerator(gridEntity.Owner, gridEntity.Comp, tile.GridIndices);