fixed bugs with missing re-initializations of delay counters in MM engine
authorHolger Schemel <info@artsoft.org>
Sat, 28 Jan 2023 13:19:07 +0000 (14:19 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 28 Jan 2023 13:19:07 +0000 (14:19 +0100)
src/game_mm/mm_game.c

index bd03e337df1fe28f13310de7ea5ec82aa251c765..63e892c5eda19f7ad3f497aec8ee140ede460951 100644 (file)
@@ -757,7 +757,11 @@ void InitGameActions_MM(void)
   SetTileCursorXY(laser.start_edge.x, laser.start_edge.y);
   SetTileCursorActive(TRUE);
 
+  // restart all delay counters after initially cycling game elements
+  ResetFrameCounter(&rotate_delay);
+  ResetFrameCounter(&pacman_delay);
   ResetFrameCounter(&energy_delay);
+  ResetFrameCounter(&overload_delay);
 }
 
 static void FadeOutLaser(void)