diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-28 09:41:41 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-28 19:55:55 +0200 |
| commit | fcc04fb4014858c5e605c190dcb1f69fdab02a2c (patch) | |
| tree | 4b3016d4481171f07d9b8612ca3b2e04f83f3c0d /src/chunk-collision.cpp | |
| parent | ad1ce7e782e820ce2c5dd2ba3a557341f71793fd (diff) | |
simplify disabling holes for debugging
Diffstat (limited to 'src/chunk-collision.cpp')
| -rw-r--r-- | src/chunk-collision.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
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<float>::rect& hole, Chunk_RTree& rtree, Vector2 }); return ret; } +#else +bool find_hole_in_bbox(CutResult<float>::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<float>::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 |
