From 6d1c5d967d027c92815bba88fa8cc3ca77f84615 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 19 Jan 2011 21:29:48 +0100 Subject: [PATCH] fix for menu music playing when restarting the menu --- qcsrc/menu/menu.qc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index 71cc021b5..4f0283c93 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -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(); -- 2.39.2