From: Holger Schemel Date: Sun, 12 Mar 2023 12:31:30 +0000 (+0100) Subject: added playing "game.losing" sound effect for all game engines X-Git-Tag: 4.3.5.2~9 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=eb8011858b57a461b9076c551179d4e22f195149;p=rocksndiamonds.git added playing "game.losing" sound effect for all game engines --- diff --git a/src/game.c b/src/game.c index 8d713df7..49874ed7 100644 --- a/src/game.c +++ b/src/game.c @@ -13999,8 +13999,6 @@ void BuryPlayer(struct PlayerInfo *player) PlayLevelSoundElementAction(jx, jy, player->artwork_element, ACTION_DYING); - PlaySound(SND_GAME_LOSING); - RemovePlayer(player); player->buried = TRUE; @@ -15682,6 +15680,9 @@ void CheckGameOver(void) if (game_over_delay > 0) { + if (game_over_delay == game_over_delay_value) + PlaySound(SND_GAME_LOSING); + game_over_delay--; return;