X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fmain_bd.c;h=e6def9ed41643850f7e1dead0799690339f5cd08;hb=f7132b81a5b7559991e1048ab8680c65cc4b98c2;hp=32305736fda1a21780d7d4fc923e2ec4ff6733a1;hpb=ee2ea277015cd6d41e5314bbdc18229bd60ca1de;p=rocksndiamonds.git diff --git a/src/game_bd/main_bd.c b/src/game_bd/main_bd.c index 32305736..e6def9ed 100644 --- a/src/game_bd/main_bd.c +++ b/src/game_bd/main_bd.c @@ -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;