rnd-20031207-2-src
authorHolger Schemel <info@artsoft.org>
Sun, 7 Dec 2003 02:12:22 +0000 (03:12 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:45:00 +0000 (10:45 +0200)
src/conftime.h
src/screens.c

index c19e6d1dc4dd7d42d70bcdf957bdf5e40d883a51..d64adaebfcd20f5e02e76d0ef61638e4fa2c774b 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2003-12-07 02:50]"
+#define COMPILE_DATE_STRING "[2003-12-07 03:11]"
index c7fd1da47d3774cfab6204228677651904eccde9..cc8b70356353ec958517582da0f9d18fcd7326dc 100644 (file)
@@ -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()