From: Holger Schemel Date: Mon, 2 Jan 2023 10:56:53 +0000 (+0100) Subject: cleanup of function for fading laser in MM engine X-Git-Tag: 4.3.5.0~59 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=46f998cb9e98f77911bbfa8a24f80d062af8acaa;p=rocksndiamonds.git cleanup of function for fading laser in MM engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index cfc8586a..8f61572d 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -725,7 +725,7 @@ void InitGameActions_MM(void) SetTileCursorActive(TRUE); } -static void FadeOutLaser(boolean overloaded) +static void FadeOutLaser(void) { int i; @@ -741,8 +741,7 @@ static void FadeOutLaser(boolean overloaded) DrawLaser(0, DL_LASER_DISABLED); - if (!overloaded) - StopSound_MM(SND_MM_GAME_HEALTH_CHARGING); + StopSound_MM(SND_MM_GAME_HEALTH_CHARGING); } static void GameOver_MM(int game_over_cause) @@ -3211,7 +3210,7 @@ static void GameActions_MM_Ext(void) } else if (game.time_limit && !game_mm.game_over) { - FadeOutLaser(FALSE); + FadeOutLaser(); GameOver_MM(GAME_OVER_NO_ENERGY); @@ -3302,7 +3301,7 @@ static void GameActions_MM_Ext(void) { UpdateAndDisplayGameControlValues(); - FadeOutLaser(TRUE); + FadeOutLaser(); GameOver_MM(GAME_OVER_OVERLOADED);