From: Holger Schemel Date: Mon, 6 Jan 2025 18:13:17 +0000 (+0100) Subject: fixed removing life if BD style intermission level lost X-Git-Tag: 4.4.0.1~35 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=38676acfad010df20fd344ae35588565ee95c158;p=rocksndiamonds.git fixed removing life if BD style intermission level lost --- diff --git a/src/game.c b/src/game.c index e9710f30..8b102df3 100644 --- a/src/game.c +++ b/src/game.c @@ -3758,13 +3758,13 @@ void InitGame(void) game_bd.global_lives = 0; game_bd.global_score = 0; } - else if (restarting && game_bd.global_lives > 1) + else if (restarting_same_level && game_bd.global_lives > 1) { // restarted BD game with multiple (and remaining) lives, so decrement number of lives // (also for intermissions; extra life will be added again later) game_bd.global_lives--; } - else if (restarting || game_status == GAME_MODE_MAIN) + else if (restarting_same_level || game_status == GAME_MODE_MAIN) { // newly started BD game with multiple lives (or restarted BD game, but no remaining lives), // so set initial number of lives and reset global score