make enabling random always randomize the entire playlist

git-svn-id: https://svn.musicpd.org/mpd/trunk@1400 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-06-08 20:12:10 +00:00
parent 62df71cf36
commit 4959c30678
1 changed files with 2 additions and 2 deletions

View File

@ -1041,11 +1041,11 @@ int setPlaylistRandomStatus(FILE * fp, int status) {
if(status!=statusWas) {
if(playlist.random) {
if(playlist_state==PLAYLIST_STATE_PLAY) {
/*if(playlist_state==PLAYLIST_STATE_PLAY) {
randomizeOrder(playlist.current+1,
playlist.length-1);
}
else randomizeOrder(0,playlist.length-1);
else */randomizeOrder(0,playlist.length-1);
}
else orderPlaylist();
}