diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-03 08:12:24 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-03 08:17:30 +0100 |
commit | ea09c317db4d243e064da095370545e43ff4c0c7 (patch) | |
tree | 9085c2ca1c468cc7edf1f184060a0d5f8b471a21 /editor/update.cpp | |
parent | 0ec9ab2a67ba246b50d266376e0cb2819f940960 (diff) |
editor: simplify find_clickable_scenery
Diffstat (limited to 'editor/update.cpp')
-rw-r--r-- | editor/update.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/update.cpp b/editor/update.cpp index ad4fb355..516d2536 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -141,8 +141,7 @@ void app::update(float dt) update_cursor_tile(cursor.pixel); clear_non_repeated_keys(); - if (clickable_scenery* s; _editor.mode() == editor_mode::none && cursor.tile && - (s = find_clickable_scenery(*cursor.pixel)) && s->item.can_activate()) + if (clickable_scenery* s = find_clickable_scenery(cursor.pixel)) M->set_cursor(std::uint32_t(Cursor::Hand)); else M->set_cursor(std::uint32_t(Cursor::Arrow)); |