projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71fc0f0
)
Fix #2681 "pressing ESC during a demo no longer brings up menu"
author
terencehill <piuntn@gmail.com>
Mon, 4 Apr 2022 22:33:04 +0000
(
00:33
+0200)
committer
terencehill <piuntn@gmail.com>
Mon, 4 Apr 2022 22:33:04 +0000
(
00:33
+0200)
qcsrc/client/main.qc
patch
|
blob
|
history
diff --git
a/qcsrc/client/main.qc
b/qcsrc/client/main.qc
index 75fb7169e1017755cef2531825d0f9f68c5d5cca..b577140c4ee775a2054093e9c7909e7c6f8c4e2e 100644
(file)
--- 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;