From 325decda20f8562b0ce596370d53882979e517c8 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 29 Oct 2020 08:53:35 +0100 Subject: [PATCH] changed handling "conf" and "properties" buttons in level editor When clicking "conf" and "properties" buttons in the level editor when the previous screen is not the playfield screen, it can be confusing how to return to the playfield screen (by clicking both buttons in the "right" order). To make things easier, both buttons now return to the playfield screen if the user is already on the corresponding screen. --- src/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor.c b/src/editor.c index acd199d5..08698843 100644 --- a/src/editor.c +++ b/src/editor.c @@ -13806,7 +13806,7 @@ static void HandleControlButtons(struct GadgetInfo *gi) } else { - ChangeEditModeWindow(last_edit_mode); + ChangeEditModeWindow(ED_MODE_DRAWING); ClickOnGadget(level_editor_gadget[last_level_drawing_function], MB_LEFTBUTTON); @@ -13971,7 +13971,7 @@ static void HandleControlButtons(struct GadgetInfo *gi) } else { - ChangeEditModeWindow(last_edit_mode); + ChangeEditModeWindow(ED_MODE_DRAWING); } break; -- 2.34.1