]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
target_music: turn off playlists while active
authorRudolf Polzer <divverent@xonotic.org>
Mon, 27 Feb 2012 08:51:54 +0000 (09:51 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 27 Feb 2012 08:51:54 +0000 (09:51 +0100)
qcsrc/client/target_music.qc

index c4573296a6bb0af9f35dedf39ae177855fc847bb..77cb2536eccad2d9e800b2f58695f049b0f5c81b 100644 (file)
@@ -106,6 +106,7 @@ void Net_TargetMusic()
                        if(!music_disabled)
                        {
                                e.state = 2;
+                               cvar_settemp("music_playlist_index", "-1"); // don't use playlists
                                localcmd("cd stop\n"); // just in case
                                music_disabled = 1;
                        }