X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=cc8b70356353ec958517582da0f9d18fcd7326dc;hb=2f5368f25e34c02cb5ff7a012aa96198442231cb;hp=c7fd1da47d3774cfab6204228677651904eccde9;hpb=8c3a8e72f2bebc6a732f11cac24a4f3ca21dd730;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index c7fd1da4..cc8b7035 100644 --- a/src/screens.c +++ b/src/screens.c @@ -996,6 +996,9 @@ void HandleInfoScreen_Music(int button) { int y = 0; + if (button != MB_MENU_INITIALIZE) + list = list->next; + if (list == NULL) { info_mode = INFO_MODE_MAIN; @@ -1011,7 +1014,12 @@ void HandleInfoScreen_Music(int button) if (list->is_sound) { - PlaySound(list->music); + int sound = list->music; + + if (sound_info[sound].loop) + PlaySoundLoop(sound); + else + PlaySound(sound); DrawTextSCentered(100, FONT_TEXT_1, "The Game Background Sounds:"); } @@ -1062,9 +1070,10 @@ void HandleInfoScreen_Music(int button) DrawTextSCentered(ybottom, FONT_TEXT_4, "Press any key or button for next page"); - - list = list->next; } + + if (list->is_sound && sound_info[list->music].loop) + PlaySoundLoop(list->music); } void DrawInfoScreen_Credits()