projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added asking for restart after game was lost (MM game engine only)
[rocksndiamonds.git]
/
src
/
game_mm
/
mm_game.c
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index 96be05c4f977ec5c56f52d8eed335ed0d85f862e..0a9d2da6fe061ecab630719923aba7ca3cf565ce 100644
(file)
--- a/
src/game_mm/mm_game.c
+++ b/
src/game_mm/mm_game.c
@@
-2490,6
+2490,8
@@
static void Explode_MM(int x, int y, int phase, int mode)
else if (IS_MCDUFFIN(Store[x][y]))
{
Store[x][y] = EL_EMPTY;
else if (IS_MCDUFFIN(Store[x][y]))
{
Store[x][y] = EL_EMPTY;
+
+ game.restart_game_message = "Bomb killed Mc Duffin ! Play it again ?";
}
Feld[x][y] = Store[x][y];
}
Feld[x][y] = Store[x][y];
@@
-3181,6
+3183,8
@@
static void GameActions_MM_Ext(struct MouseActionInfo action, boolean warp_mode)
SetTileCursorActive(FALSE);
SetTileCursorActive(FALSE);
+ game.restart_game_message = "Out of magic energy ! Play it again ?";
+
#if 0
if (Request("Out of magic energy ! Play it again ?",
REQ_ASK | REQ_STAY_CLOSED))
#if 0
if (Request("Out of magic energy ! Play it again ?",
REQ_ASK | REQ_STAY_CLOSED))
@@
-3313,6
+3317,8
@@
static void GameActions_MM_Ext(struct MouseActionInfo action, boolean warp_mode)
SetTileCursorActive(FALSE);
SetTileCursorActive(FALSE);
+ game.restart_game_message = "Magic spell hit Mc Duffin ! Play it again ?";
+
#if 0
if (Request("Magic spell hit Mc Duffin ! Play it again ?",
REQ_ASK | REQ_STAY_CLOSED))
#if 0
if (Request("Magic spell hit Mc Duffin ! Play it again ?",
REQ_ASK | REQ_STAY_CLOSED))