Fix tile equalization terrible mistake
This commit is contained in:
@@ -401,6 +401,7 @@ namespace Content.Server.Atmos
|
||||
takerTiles[takerTilesLength++] = tile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// This is the part that can become O(n^2).
|
||||
if (giverTilesLength < takerTilesLength)
|
||||
@@ -566,7 +567,6 @@ namespace Content.Server.Atmos
|
||||
ArrayPool<TileAtmosphere>.Shared.Return(giverTiles);
|
||||
ArrayPool<TileAtmosphere>.Shared.Return(takerTiles);
|
||||
}
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private void FinalizeEq()
|
||||
|
||||
Reference in New Issue
Block a user