added functions to advance game and tile frame counter for MM engine
authorHolger Schemel <info@artsoft.org>
Wed, 2 Nov 2022 14:12:38 +0000 (15:12 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 2 Nov 2022 14:13:18 +0000 (15:13 +0100)
src/engines.h
src/game.c

index 65a9798f9921cba8c82fdbeb9270425f1de0bd1f..c90cc0a182665a79bb2281e46dbb8d89a744d476 100644 (file)
@@ -65,9 +65,14 @@ int el2img_mm(int);
 void CheckSingleStepMode_MM(boolean, boolean);
 
 int getGraphicAnimationFrame(int, int);
+int getGraphicAnimationFrameXY(int, int, int);
+
 void getGraphicSource(int, int, Bitmap **, int *, int *);
 void getMiniGraphicSource(int, Bitmap **, int *, int *);
 void getSizedGraphicSource(int, int, int, Bitmap **, int *, int *);
 
+void AdvanceFrameCounter(void);
+void AdvanceGfxFrame(void);
+
 
 #endif // ENGINES_H
index 178f35defaf7352aff75dd66bbd529c6e22ad41c..31a52004fc77bd999cc7f86ac9468364c0fb4057 100644 (file)
@@ -11678,6 +11678,21 @@ void AdvanceFrameAndPlayerCounters(int player_nr)
   }
 }
 
+void AdvanceFrameCounter(void)
+{
+  FrameCounter++;
+}
+
+void AdvanceGfxFrame(void)
+{
+  int x, y;
+
+  SCAN_PLAYFIELD(x, y)
+  {
+    GfxFrame[x][y]++;
+  }
+}
+
 void StartGameActions(boolean init_network_game, boolean record_tape,
                      int random_seed)
 {
@@ -12025,6 +12040,8 @@ void GameActions_SP_Main(void)
 
 void GameActions_MM_Main(void)
 {
+  AdvanceGfxFrame();
+
   GameActions_MM(local_player->effective_mouse_action);
 }