]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't call StartPlaylist if index is -1 (disables playlists)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Jan 2010 21:56:54 +0000 (21:56 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 30 Jan 2010 21:56:54 +0000 (21:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9893 d7cf8633-e32d-0410-b094-e92efae38249

cd_shared.c

index 06589a094cecb57ea2478a29a8acf6c2fb90ebd4..e7e395305e29a3c792e9f35fcce7cb1fed2a5bed 100644 (file)
@@ -706,7 +706,7 @@ void CDAudio_Update (void)
                lastplaylist = music_playlist_index.integer;
        }
        else if (lastplaylist != music_playlist_index.integer
-       || (bgmvolume.value > 0 && !music_playlist_playing))
+       || (bgmvolume.value > 0 && !music_playlist_playing && music_playlist_index.integer >= 0))
        {
                // active playlist changed, save position and switch track
                CDAudio_StartPlaylist(true);