projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e045b84
)
added skipping certain game actions on game over in MM engine
author
Holger Schemel
<info@artsoft.org>
Thu, 29 Dec 2022 00:31:32 +0000
(
01:31
+0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 29 Dec 2022 00:31:46 +0000
(
01:31
+0100)
src/game_mm/mm_game.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index c3d573db93c59ff2430e378f4c7595246b49e1fe..a3c22be01a129c6764956c55dca15d229906cee5 100644
(file)
--- a/
src/game_mm/mm_game.c
+++ b/
src/game_mm/mm_game.c
@@
-3174,6
+3174,10
@@
static void GameActions_MM_Ext(void)
}
}
+ // skip all following game actions if game is over
+ if (game_mm.game_over)
+ return;
+
if (FrameReached(&energy_delay))
{
if (game_mm.energy_left > 0)