fixed bug with forced restart of global animations when restarting game
[rocksndiamonds.git] / src / game.c
index 299fd72bdd934957fc06ca6e9343f1ad315c60aa..a025b4b9d65835bdfe125859d60f30a2f1e1bbb0 100644 (file)
@@ -3629,6 +3629,10 @@ void InitGame(void)
     // force restarting global animations displayed during game play
     RestartGlobalAnimsByStatus(GAME_MODE_PSEUDO_RESTARTING);
 
+    // this is required for "transforming" fade modes like cross-fading
+    // (else global animations will be stopped, but not restarted here)
+    SetAnimStatusBeforeFading(GAME_MODE_PSEUDO_RESTARTING);
+
     SetGameStatus(GAME_MODE_PLAYING);
   }
 
@@ -10716,7 +10720,7 @@ static boolean ChangeElement(int x, int y, int element, int page)
   ChangeCount[x][y]++;         // count number of changes in the same frame
 
   if (ei->has_anim_event)
-    HandleGlobalAnimEventByElementChange(element, page);
+    HandleGlobalAnimEventByElementChange(element, page, x, y);
 
   if (change->explode)
   {