summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-03 23:41:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-05 03:16:23 +0200
commit77ee1cf6fbe36b3a6d3c59abd5d3141d68e403ed (patch)
tree6b3c780913cfb92674493bc9b5f06de772b9773b /src
parent90e14ba9636f4f5a44f06efac5a50e373d8daeaa (diff)
c
Diffstat (limited to 'src')
-rw-r--r--src/chunk-scenery.cpp4
1 files 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<chunk::object_draw_order>& array, size_t& output, size_t i, size_t size) // NOLINT(misc-no-recursion)