summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index a4b9bbcd..823c8c01 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -55,7 +55,7 @@ void app::do_mouse_up_down(uint8_t button, bool is_down, int mods)
{
switch (_editor->mode())
{
- default:
+ case editor_mode::tests:
break;
case editor_mode::none:
if (button == mouse_button_left)
@@ -78,8 +78,8 @@ void app::do_mouse_up_down(uint8_t button, bool is_down, int mods)
case editor_mode::floor:
case editor_mode::walls:
case editor_mode::scenery:
- case editor_mode::vobj:
- auto pos = *cursor.tile;
+ case editor_mode::vobj: {
+ const auto pos = *cursor.tile;
switch (button)
{
case mouse_button_left:
@@ -92,6 +92,7 @@ void app::do_mouse_up_down(uint8_t button, bool is_down, int mods)
}
break;
}
+ }
}
_editor->on_release();
}