fixed score time for BD engine
[rocksndiamonds.git] / src / game_bd / main_bd.c
index 32305736fda1a21780d7d4fc923e2ec4ff6733a1..e6def9ed41643850f7e1dead0799690339f5cd08 100644 (file)
@@ -255,6 +255,14 @@ int getTimeLeft_BD(void)
   return 0;
 }
 
+void SetTimeFrames_BD(int frames_played)
+{
+  // needed to store final time after solving game (before counting down remaining time)
+  if (game_bd.game->state_counter == GAME_INT_CAVE_RUNNING)
+    game_bd.frames_played = frames_played;
+
+}
+
 static void UpdateGameDoorValues_BD(void)
 {
   GdCave *cave = game_bd.game->cave;