music_gui.c
changeset 1724 d924b0c632e7
parent 1608 70a3c1a6576d
child 1884 804ff5f94ed0
equal deleted inserted replaced
1723:edb80d6bcc2d 1724:d924b0c632e7
   179 	}
   179 	}
   180 
   180 
   181 	if (_song_is_active == false)
   181 	if (_song_is_active == false)
   182 		return;
   182 		return;
   183 
   183 
   184 	if (!_music_driver->is_song_playing() && _game_mode != GM_MENU) {
   184 	if (!_music_driver->is_song_playing()) {
   185 		StopMusic();
   185 		if (_game_mode != GM_MENU) {
   186 		SkipToNextSong();
   186 			StopMusic();
   187 		PlayPlaylistSong();
   187 			SkipToNextSong();
       
   188 			PlayPlaylistSong();
       
   189 		} else
       
   190 			ResetMusic();
   188 	}
   191 	}
   189 }
   192 }
   190 
   193 
   191 static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e)
   194 static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e)
   192 {
   195 {