From: Holger Schemel Date: Sun, 7 Dec 2003 02:12:22 +0000 (+0100) Subject: rnd-20031207-2-src X-Git-Tag: 3.0.8^2~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b5f59ffe4c22ffd70a346661baeba466c3ae40db;p=rocksndiamonds.git rnd-20031207-2-src --- 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()