added saving current level number when manually selecting different level
authorHolger Schemel <info@artsoft.org>
Tue, 14 Mar 2017 19:40:26 +0000 (20:40 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 11 Oct 2017 07:18:43 +0000 (09:18 +0200)
src/editor.c
src/screens.c

index ca104b8d9b16dd6e74e4c88537cb10ae24a27e55..3d6b09809c7bcccd6fe643d415d0c2704c0a2013 100644 (file)
@@ -11366,6 +11366,8 @@ static void HandleCounterButtons(struct GadgetInfo *gi)
       LoadLevel(level_nr);
       LoadScore(level_nr);
 
+      SaveLevelSetup_SeriesInfo();
+
       TapeErase();
 
       ResetUndoBuffer();
index 83c436140e665996b01aed85bf21115ffdebbc04..e8171d5e1360c4772678403d7ce9bd641f1c5acb 100644 (file)
@@ -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(); */