projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38676ac
)
fixed removing life twice if BD style level lost
author
Holger Schemel
<holger.schemel@virtion.de>
Mon, 6 Jan 2025 18:20:53 +0000
(19:20 +0100)
committer
Holger Schemel
<holger.schemel@virtion.de>
Mon, 6 Jan 2025 18:20:53 +0000
(19:20 +0100)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 8b102df3054211d6095e704487fc93cde7bc38ee..78947c2fa8b32d4df991bcb572cd0afcdc5aba7f 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-5320,11
+5320,8
@@
void GameEnd(void)
// do not restart intermission after game over (but continue with next level)
if (!level.bd_intermission)
{
- // only decrement number of lives for normal levels, not for intermissions
- game_bd.global_lives--;
-
// do not handle game end if game over and playing with remaining multiple lives
- if (game_bd.global_lives >
0
)
+ if (game_bd.global_lives >
1
)
restart_game = TRUE;
}
}