From: Holger Schemel Date: Thu, 29 Oct 2020 07:53:35 +0000 (+0100) Subject: changed handling "conf" and "properties" buttons in level editor X-Git-Tag: 4.2.0.4~4 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=325decda20f8562b0ce596370d53882979e517c8 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. --- 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;