From b5f59ffe4c22ffd70a346661baeba466c3ae40db Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 7 Dec 2003 03:12:22 +0100 Subject: [PATCH] rnd-20031207-2-src --- src/conftime.h | 2 +- src/screens.c | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/conftime.h b/src/conftime.h index c19e6d1d..d64adaeb 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2003-12-07 02:50]" +#define COMPILE_DATE_STRING "[2003-12-07 03:11]" 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() -- 2.34.1