From: Holger Schemel Date: Fri, 12 May 2017 17:11:09 +0000 (+0200) Subject: fixed bug with changing selectboxes in editor not marking level as changed X-Git-Tag: 4.1.0.0~109 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a747b26cc670dc7666d6d81a2cb612f640a576f6;p=rocksndiamonds.git fixed bug with changing selectboxes in editor not marking level as changed --- diff --git a/src/editor.c b/src/editor.c index c806313b..3aff6330 100644 --- a/src/editor.c +++ b/src/editor.c @@ -12393,8 +12393,6 @@ static void HandleSelectboxGadgets(struct GadgetInfo *gi) } CopyElementPropertiesToGame(properties_element); - - level.changed = TRUE; } else if (type_id == ED_SELECTBOX_ID_GAME_ENGINE_TYPE) { @@ -12402,6 +12400,12 @@ static void HandleSelectboxGadgets(struct GadgetInfo *gi) ReinitializeElementList(); ModifyEditorElementList(); } + + /* do not mark level as modified for certain non-level-changing gadgets */ + if (type_id == ED_SELECTBOX_ID_SELECT_CHANGE_PAGE) + return; + + level.changed = TRUE; } static void HandleTextbuttonGadgets(struct GadgetInfo *gi)