From: terencehill Date: Mon, 4 Apr 2022 22:33:04 +0000 (+0200) Subject: Fix #2681 "pressing ESC during a demo no longer brings up menu" X-Git-Tag: xonotic-v0.8.5~107 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1815152eb0bc357d89f355a506dd37a4b59f71ab;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2681 "pressing ESC during a demo no longer brings up menu" --- 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;