From 1815152eb0bc357d89f355a506dd37a4b59f71ab Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 5 Apr 2022 00:33:04 +0200 Subject: [PATCH] Fix #2681 "pressing ESC during a demo no longer brings up menu" --- qcsrc/client/main.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 75fb7169e..b577140c4 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -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; -- 2.39.2