summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-21 18:31:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-21 18:31:06 +0100
commitdba52df4581329a692d889d76cb7f093e7e3f7d9 (patch)
tree85d1979fc3062856ac2f4eaaae484a1d22bfc4f5 /editor/update.cpp
parent38993b7085d42087ce5810ea0992108b25588786 (diff)
www
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index 33c5243c..e80a5318 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -124,7 +124,7 @@ void app::do_mouse_scroll(int offset)
void app::do_rotate(bool backward)
{
- if (auto* ed = _editor.current_tile_editor())
+ if (auto* ed = _editor.current_wall_editor())
ed->toggle_rotation();
else if (auto* ed = _editor.current_scenery_editor())
{
@@ -149,7 +149,9 @@ void app::do_set_mode(editor_mode mode)
void app::do_escape()
{
- if (auto* ed = _editor.current_tile_editor())
+ if (auto* ed = _editor.current_ground_editor())
+ ed->clear_selection();
+ if (auto* ed = _editor.current_wall_editor())
ed->clear_selection();
if (auto* sc = _editor.current_scenery_editor())
sc->clear_selection();