From 77ee1cf6fbe36b3a6d3c59abd5d3141d68e403ed Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 May 2024 23:41:23 +0200 Subject: c --- src/chunk-scenery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp index 05450cea..16261278 100644 --- a/src/chunk-scenery.cpp +++ b/src/chunk-scenery.cpp @@ -23,8 +23,8 @@ auto chunk::ensure_scenery_mesh() noexcept -> scenery_mesh_tuple bool chunk::topo_sort_data::intersects(const topo_sort_data& o) const { - return min[0] <= o.max[0] && max[0] >= o.min[0] && - min[1] <= o.max[1] && max[1] >= o.min[1]; + return min.x() <= o.max.x() && max.x() >= o.min.x() && + min.y() <= o.max.y() && max.y() >= o.min.y(); } static void topo_dfs(Array& array, size_t& output, size_t i, size_t size) // NOLINT(misc-no-recursion) -- cgit v1.2.3