From c30ebbe281e38efaa93409ea8de453c54157f51c Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 19 Mar 2022 10:42:27 +0100 Subject: [PATCH] fixed using same background music for hall of fame and score info page --- src/screens.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/screens.c b/src/screens.c index f62d84fb..8f893cbf 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4833,6 +4833,8 @@ static int getAlignYOffsetFromTreeInfo(TreeInfo *ti) static void DrawChooseTree(TreeInfo **ti_ptr) { int fade_mask = REDRAW_FIELD; + boolean restart_music = (game_status != game_status_last_screen && + game_status_last_screen != GAME_MODE_SCOREINFO); if (CheckFadeAll()) fade_mask = REDRAW_ALL; @@ -4858,7 +4860,7 @@ static void DrawChooseTree(TreeInfo **ti_ptr) FreeScreenGadgets(); CreateScreenGadgets(); - if (game_status != game_status_last_screen) + if (restart_music) FadeMenuSoundsAndMusic(); FadeOut(fade_mask); @@ -4889,7 +4891,7 @@ static void DrawChooseTree(TreeInfo **ti_ptr) DrawMaskedBorder(fade_mask); - if (game_status != game_status_last_screen) + if (restart_music) PlayMenuSoundsAndMusic(); FadeIn(fade_mask); -- 2.34.1