From 4959c30678f374f265d364daa9580e2b89fd17ff Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 8 Jun 2004 20:12:10 +0000 Subject: make enabling random always randomize the entire playlist git-svn-id: https://svn.musicpd.org/mpd/trunk@1400 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playlist.c b/src/playlist.c index 21ac024f6..911291ff7 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -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(); } -- cgit v1.2.3