]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2681 "pressing ESC during a demo no longer brings up menu"
authorterencehill <piuntn@gmail.com>
Mon, 4 Apr 2022 22:33:04 +0000 (00:33 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 4 Apr 2022 22:33:04 +0000 (00:33 +0200)
qcsrc/client/main.qc

index 75fb7169e1017755cef2531825d0f9f68c5d5cca..b577140c4ee775a2054093e9c7909e7c6f8c4e2e 100644 (file)
@@ -490,7 +490,7 @@ float CSQC_InputEvent(int bInputType, float nPrimary, float nSecondary)
 
        if (nPrimary == K_ESCAPE && !(hudShiftState & S_SHIFT) && key_pressed)
        {
-               if (cvar("_menu_gamemenu_dialog_available"))
+               if (!isdemo() && cvar("_menu_gamemenu_dialog_available"))
                {
                        localcmd("\nmenu_showgamemenudialog\n");
                        return true;