From fcc04fb4014858c5e605c190dcb1f69fdab02a2c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 28 Jul 2024 09:41:41 +0200 Subject: simplify disabling holes for debugging --- src/chunk-collision.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/chunk-collision.cpp') diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp index 37c00710..67a2dea9 100644 --- a/src/chunk-collision.cpp +++ b/src/chunk-collision.cpp @@ -87,6 +87,9 @@ bool find_hole_in_bbox(CutResult::rect& hole, Chunk_RTree& rtree, Vector2 }); return ret; } +#else +bool find_hole_in_bbox(CutResult::rect&, Chunk_RTree&, Vector2, Vector2) { return true; } +#endif CORRADE_NEVER_INLINE void filter_through_holes(Chunk_RTree& rtree, object_id id, Vector2 min, Vector2 max, bool has_holes) @@ -121,15 +124,6 @@ start: } } } -#else - -bool find_hole_in_bbox(CutResult::rect&, Chunk_RTree&, Vector2, Vector2) -{ return true; } - -void filter_through_holes(Chunk_RTree& rtree, object_id id, Vector2 min, Vector2 max, bool) -{ rtree.Insert(min.data(), max.data(), id); } - -#endif } // namespace -- cgit v1.2.3