summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-08 17:05:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-08 19:40:10 +0200
commit064379bd0bd929f6b87c50f740e9a783b4d9e054 (patch)
treeb717428ace85bde06fff19ac96b11d95787b538f /editor/update.cpp
parent4eefaf4e12199c071d2e6ee0d99b46d2e1d45557 (diff)
a
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();
}