From: Holger Schemel Date: Tue, 14 Mar 2017 19:40:26 +0000 (+0100) Subject: added saving current level number when manually selecting different level X-Git-Tag: 4.0.1.1~34 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4137efffbe89e2fc4a5a8b0d55b76c7605d92a52;p=rocksndiamonds.git added saving current level number when manually selecting different level --- diff --git a/src/editor.c b/src/editor.c index ca104b8d..3d6b0980 100644 --- a/src/editor.c +++ b/src/editor.c @@ -11366,6 +11366,8 @@ static void HandleCounterButtons(struct GadgetInfo *gi) LoadLevel(level_nr); LoadScore(level_nr); + SaveLevelSetup_SeriesInfo(); + TapeErase(); ResetUndoBuffer(); diff --git a/src/screens.c b/src/screens.c index 83c43614..e8171d5e 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1482,6 +1482,8 @@ void DrawMainMenu() LoadLevel(level_nr); LoadScore(level_nr); + SaveLevelSetup_SeriesInfo(); + // set this after "ChangeViewportPropertiesIfNeeded()" (which may reset it) SetDrawDeactivationMask(REDRAW_NONE); SetDrawBackgroundMask(REDRAW_FIELD); @@ -1785,6 +1787,8 @@ void HandleMainMenu_SelectLevel(int step, int direction, int selected_level_nr) LoadTape(level_nr); DrawCompleteVideoDisplay(); + SaveLevelSetup_SeriesInfo(); + /* needed because DrawPreviewLevelInitial() takes some time */ BackToFront(); /* SyncDisplay(); */