improved forced restart of global animations when restarting game
[rocksndiamonds.git] / src / anim.c
index 3f0a727cf47f96aa22feb70efab694be8b98122b..2f0278ef19360c83630208261d9cc28a3b107c30 100644 (file)
@@ -1997,12 +1997,13 @@ static void ResetGlobalAnim_Clicked(void)
   InitGlobalAnim_Clicked(-1, -1, ANIM_CLICKED_RESET);
 }
 
-void RestartGlobalAnims(void)
+void RestartGlobalAnimsByStatus(int status)
 {
   int anim_status_last = global.anim_status;
 
-  global.anim_status = GAME_MODE_LOADING;
+  global.anim_status = status;
 
+  // force restarting global animations by changed global animation status
   SDLRedrawWindow();
 
   global.anim_status = anim_status_last;