projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20091124-2-src
[rocksndiamonds.git]
/
src
/
game_sp
/
MainGameLoop.c
diff --git
a/src/game_sp/MainGameLoop.c
b/src/game_sp/MainGameLoop.c
index e1f81f4ddedf7d1e953beaabfdc1c67c1d63a066..42bafa50fe9e253fbf04201159caa617171c7a12 100644
(file)
--- a/
src/game_sp/MainGameLoop.c
+++ b/
src/game_sp/MainGameLoop.c
@@
-117,8
+117,15
@@
locRepeatMainGameLoop: // start repeating game loop
LastFrame = Clock.TickNow(); // store the frame time
#endif
// never any additional code between here!
LastFrame = Clock.TickNow(); // store the frame time
#endif
// never any additional code between here!
+
+
+
+#if 0
if (! NoDisplayFlag) // copy the BackBuffer(=Stage) to visible screen
Stage.Blt();
if (! NoDisplayFlag) // copy the BackBuffer(=Stage) to visible screen
Stage.Blt();
+#endif
+
+
// FS end of synchronization
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// FS end of synchronization
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@
-279,11
+286,16
@@
locRepeatMainGameLoop: // start repeating game loop
locExitMainGameLoop:
locExitMainGameLoop:
-#if
0
+#if
1
printf("::: locExitMainGameLoop reached [%d]\n", LeadOutCounter);
printf("::: locExitMainGameLoop reached [%d]\n", LeadOutCounter);
+ printf("::: [KillMurphyFlag == %d]\n", KillMurphyFlag);
#endif
#endif
-
+#if 1
+ /* if the game is not won when reaching this point, then it is lost */
+ if (!game_sp_info.LevelSolved)
+ game_sp_info.GameOver = TRUE;
+#endif
#if 1
return subMainGameLoop;
#if 1
return subMainGameLoop;