(svn r2228) - Fix: [ 1188986 ] Song in main menu screen should loop when it ends.
authorDarkvater
Sun, 24 Apr 2005 19:04:56 +0000
changeset 1724 f2df13e9b628
parent 1723 82bee0c4e589
child 1725 97841c222b55
(svn r2228) - Fix: [ 1188986 ] Song in main menu screen should loop when it ends.
music_gui.c
--- a/music_gui.c	Sun Apr 24 18:24:29 2005 +0000
+++ b/music_gui.c	Sun Apr 24 19:04:56 2005 +0000
@@ -181,10 +181,13 @@
 	if (_song_is_active == false)
 		return;
 
-	if (!_music_driver->is_song_playing() && _game_mode != GM_MENU) {
-		StopMusic();
-		SkipToNextSong();
-		PlayPlaylistSong();
+	if (!_music_driver->is_song_playing()) {
+		if (_game_mode != GM_MENU) {
+			StopMusic();
+			SkipToNextSong();
+			PlayPlaylistSong();
+		} else
+			ResetMusic();
 	}
 }