]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
Add menu_gamemenu client cvar for the in-game menu
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index 69214ee8a9877e9a1a74d92f217f6e9bb74bf261..74ff56bb1dff7b7b02ed1fa85f2af9660acdfdfd 100644 (file)
@@ -526,7 +526,7 @@ float CSQC_InputEvent(int bInputType, float nPrimary, float nSecondary)
                        Scoreboard_UI_Enable(0);
                        return true;
                }
-               if (!isdemo() && cvar("_menu_gamemenu_dialog_available"))
+               if (autocvar_menu_gamemenu && !isdemo() && cvar("_menu_gamemenu_dialog_available"))
                {
                        localcmd("\nmenu_showgamemenudialog\n");
                        return true;