(svn r11259) -Fix [FS#1331]: the wrong song was played in the first intro game of a single OTTD session.
authorrubidium
Sun, 14 Oct 2007 19:46:00 +0000
changeset 7724 b056c58fb5d9
parent 7723 0274fb967b78
child 7725 a44140f11d8a
(svn r11259) -Fix [FS#1331]: the wrong song was played in the first intro game of a single OTTD session.
src/music_gui.cpp
--- a/src/music_gui.cpp	Sun Oct 14 19:13:38 2007 +0000
+++ b/src/music_gui.cpp	Sun Oct 14 19:46:00 2007 +0000
@@ -174,7 +174,11 @@
 	if (!msf.playing && _song_is_active) {
 		StopMusic();
 	} else if (msf.playing && !_song_is_active) {
-		PlayPlaylistSong();
+		if (_game_mode != GM_MENU) {
+			PlayPlaylistSong();
+		} else {
+			ResetMusic();
+		}
 	}
 
 	if (!_song_is_active) return;