]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Docking allocs reduc (#34965)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 16 Feb 2025 02:10:39 +0000 (13:10 +1100)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2025 02:10:39 +0000 (03:10 +0100)
Stuff I had unstaged.

Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs

index aabfaa31dd84c553aec9b9bf45831ede80402931..8435075a692f6c62dd6d72dcef54029e9cec9038 100644 (file)
@@ -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);