projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed score time for BD engine
[rocksndiamonds.git]
/
src
/
game_bd
/
main_bd.c
diff --git
a/src/game_bd/main_bd.c
b/src/game_bd/main_bd.c
index 32305736fda1a21780d7d4fc923e2ec4ff6733a1..e6def9ed41643850f7e1dead0799690339f5cd08 100644
(file)
--- a/
src/game_bd/main_bd.c
+++ b/
src/game_bd/main_bd.c
@@
-255,6
+255,14
@@
int getTimeLeft_BD(void)
return 0;
}
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;
static void UpdateGameDoorValues_BD(void)
{
GdCave *cave = game_bd.game->cave;