projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved handling game over condition from MM game engine to main engine
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 2ae8886f5c6d7fe80f49c4676c4ccc7568240b21..d91d8ac3ec629de5625ce29485531dba7c64bfa9 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-15668,6
+15668,10
@@
static char *getRestartGameMessage(void)
char *game_over_text = "Game over!";
char *play_again_text = " Play it again?";
char *game_over_text = "Game over!";
char *play_again_text = " Play it again?";
+ if (level.game_engine_type == GAME_ENGINE_TYPE_MM &&
+ game_mm.game_over_message != NULL)
+ game_over_text = game_mm.game_over_message;
+
snprintf(message, MAX_OUTPUT_LINESIZE, "%s%s", game_over_text,
(play_again ? play_again_text : ""));
snprintf(message, MAX_OUTPUT_LINESIZE, "%s%s", game_over_text,
(play_again ? play_again_text : ""));