diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-20 12:33:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-20 12:33:00 +0200 |
commit | 275cb79a1857fff08ce1b642bbfab6d7377bcaef (patch) | |
tree | b8671ed206fc27d4762779cf64113ef7d9ce8fd9 /editor/camera.cpp | |
parent | 5be116ea43231c747f09c4d43a75d45984b54a66 (diff) |
aa
Diffstat (limited to 'editor/camera.cpp')
-rw-r--r-- | editor/camera.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editor/camera.cpp b/editor/camera.cpp index 42b81c82..674c5e23 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -60,11 +60,8 @@ void app::reset_camera_offset() update_cursor_tile(cursor.pixel); } -object_id app::object_at_cursor() +object_id app::get_object_colliding_with_cursor() { - auto [z_min, z_max, z_cur, only] = get_z_bounds(); - if (only) - z_min = z_max = z_cur; const auto [minx, maxx, miny, maxy] = M->get_draw_bounds(); const auto sz = M->window_size(); auto& world = M->world(); |