From dba52df4581329a692d889d76cb7f093e7e3f7d9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 21 Dec 2023 18:31:06 +0100 Subject: www --- editor/update.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editor/update.cpp') 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(); -- cgit v1.2.3