From 15a53b26c97a7afb58fc665e1071151526910512 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 7 Mar 2023 00:04:54 +0100 Subject: wip fix --- editor/draw.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/draw.cpp b/editor/draw.cpp index 5ae5cf8d..b91c715d 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -120,6 +120,7 @@ void app::draw_collision_boxes() auto chunk_dist = (curchunk - Vector2(c_pos))*chunk_size; auto t0 = chunk_dist + curtile*TILE_SIZE2 + subpixel; auto t1 = t0+Vector2(1e-4f); + //Debug{} << Vector2(c_pos) << t0 << subpixel; const auto* rtree = c.rtree(); rtree->Search(t0.data(), t1.data(), [&](std::uint64_t data, const rect_type& rect) { [[maybe_unused]] auto x = std::bit_cast(data); @@ -131,6 +132,7 @@ void app::draw_collision_boxes() }); } } + //Debug{} << "--"; } shader.set_tint({1, 1, 1, 1}); -- cgit v1.2.3