fixed adding extra life when playing BD games with multiple lives
authorHolger Schemel <info@artsoft.org>
Sun, 19 Jan 2025 15:49:43 +0000 (16:49 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 19 Jan 2025 15:49:45 +0000 (16:49 +0100)
src/game_bd/bd_gameplay.c

index 791711e4fbafc50c1fede77bdc4b6ad4efacd114..67a25f645c97ce10b30a035b96ca1d08fb0d2f6a 100644 (file)
@@ -229,8 +229,8 @@ GdGame *gd_game_new(const int cave, const int level)
   game->cave_num = cave;
   game->level_num = level;
 
-  game->player_lives = gd_caveset_data->initial_lives;
-  game->player_score = 0;
+  game->player_lives = game_bd.global_lives;
+  game->player_score = game_bd.global_score;
 
   game->player_move = GD_MV_STILL;
   game->player_move_stick = FALSE;