summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-29 14:26:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-29 14:40:30 +0100
commit1468845c9a7fe9629142227d1bef0302a39fce81 (patch)
treeed515f4ba7df0dee189786f66d21f83f2a5cae74 /editor/update.cpp
parent40d5a7a06aea896cf38a9efa8d040382ad69a2b0 (diff)
editor: maybe try indenting like that
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index 4d140c88..cc68c4b5 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -128,8 +128,8 @@ void app::update(float dt)
do_camera(dt, keys, get_key_modifiers());
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; _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));