]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix for menu music playing when restarting the menu
authorRudolf Polzer <divverent@alientrap.org>
Wed, 19 Jan 2011 20:29:48 +0000 (21:29 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 19 Jan 2011 20:29:48 +0000 (21:29 +0100)
qcsrc/menu/menu.qc

index 71cc021b5ae9cb239afec9395a46e3e2c3f43922..4f0283c93e6587436a4d2109a77e4392127232fa 100644 (file)
@@ -561,9 +561,11 @@ void() m_draw =
                if(Menu_Active)
                if(!cvar("menu_video_played"))
                {
-                       localcmd("set menu_video_played 1; cd loop $menu_cdtrack; play sound/announcer/default/welcome.ogg\n");
+                       localcmd("cd loop $menu_cdtrack; play sound/announcer/default/welcome.ogg\n");
                        menuLogoAlpha = -0.8; // no idea why, but when I start this at zero, it jumps instead of fading FIXME
                }
+               // ALWAYS set this cvar; if we start but menu is not active, this means we want no background music!
+               localcmd("set menu_video_played 1\n");
        }
 
        t = gettime();