diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-07 00:04:54 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-07 00:04:54 +0100 |
| commit | 15a53b26c97a7afb58fc665e1071151526910512 (patch) | |
| tree | 4dbd3ab6a1b48c4e7576e0444feb506eecf57f66 | |
| parent | 9916061f5d22ef9f70b0449fca65ca8319150a96 (diff) | |
wip fix
| -rw-r--r-- | editor/draw.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<collision_data>(data); @@ -131,6 +132,7 @@ void app::draw_collision_boxes() }); } } + //Debug{} << "--"; } shader.set_tint({1, 1, 1, 1}); |
