]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Force exit from hud config during mapvote
authorterencehill <piuntn@gmail.com>
Sun, 1 May 2011 13:57:44 +0000 (15:57 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 1 May 2011 13:57:44 +0000 (15:57 +0200)
qcsrc/client/hud.qc

index c70003153727db151802168d2336775ed3380e97..7112a69c356a5b33b2fa6d8ece17fe9a17ff6248 100644 (file)
@@ -4560,7 +4560,18 @@ void HUD_Main (void)
                hud_fade_alpha = (1 - scoreboard_fade_alpha);
 
        if(intermission == 2) // no hud during mapvote
+       {
+               if (autocvar__hud_configure) //force exit from hud config
+               {
+                       if (menu_enabled)
+                       {
+                               menu_enabled = 0;
+                               localcmd("togglemenu\n");
+                       }
+                       cvar_set("_hud_configure", "0");
+               }
                hud_fade_alpha = 0;
+       }
        else if(autocvar__menu_alpha == 0 && scoreboard_fade_alpha == 0)
                hud_fade_alpha = 1;