added storing last game mode when setting new game mode
[rocksndiamonds.git] / src / tools.c
index 794174c1d1ccbe0ccf34b87a474b9fb59d596c4e..e99d26ce169ad18c33f601c674a684d6165ff0d6 100644 (file)
@@ -8507,6 +8507,9 @@ void SetAnimStatus(int anim_status_new)
 
 void SetGameStatus(int game_status_new)
 {
+  if (game_status_new != game_status)
+    game_status_last_screen = game_status;
+
   game_status = game_status_new;
 
   SetAnimStatus(game_status_new);