summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-29 14:24:36 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-29 14:24:36 +0100
commit06a7c514052e180e5ec35e84dac0292d54515cb2 (patch)
treefc205cfb933e07ead23d1c9207a8987707c7b7ed /editor/update.cpp
parent579d0d3bf06019409a1d842a523417e425d1af96 (diff)
editor: fix scenery interactible condition
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index eba39798..4d140c88 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -129,7 +129,7 @@ void app::update(float dt)
clear_non_repeated_keys();
if (clickable_scenery* s;
- !_editor.current_tile_editor() && cursor.tile && (s = find_clickable_scenery(*cursor.pixel)) && s->item.can_activate())
+ _editor.mode() == editor_mode::none && cursor.tile && (s = find_clickable_scenery(*cursor.pixel)) && s->item.can_activate())
M->set_cursor(std::uint32_t(Cursor::Hand));
else
M->set_cursor(std::uint32_t(Cursor::Arrow));