aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/client/cl_ui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/code/client/cl_ui.c b/code/client/cl_ui.c
index e3022c5..2854b12 100644
--- a/code/client/cl_ui.c
+++ b/code/client/cl_ui.c
@@ -802,7 +802,9 @@ intptr_t CL_UISystemCalls( intptr_t *args ) {
case UI_CMD_EXECUTETEXT:
if(args[1] == 0
- && (!strncmp(VMA(2), "snd_restart", 11) || !strncmp(VMA(2), "vid_restart", 11)))
+ && (!strncmp(VMA(2), "snd_restart", 11)
+ || !strncmp(VMA(2), "vid_restart", 11)
+ || !strncmp(VMA(2), "quit", 5)))
{
Com_Printf (S_COLOR_YELLOW "turning EXEC_NOW '%.11s' into EXEC_INSERT\n", (const char*)VMA(2));
args[1] = EXEC_INSERT;