diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-04-06 12:59:26 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-04-06 12:59:26 +0000 |
commit | 64333d1545f9e7230edd0457bb06a95933ccc4c4 (patch) | |
tree | d510c6a06d33d5e64da4cb26382ed1945c91228d | |
parent | 427e66b337746bbacf8ec8ae0db7c30ad186ba8e (diff) | |
download | ioquake3-aero-64333d1545f9e7230edd0457bb06a95933ccc4c4.tar.gz ioquake3-aero-64333d1545f9e7230edd0457bb06a95933ccc4c4.zip |
catch EXEC_NOW on quit to prevent deleting a running vm
git-svn-id: svn://svn.icculus.org/quake3/trunk@1298 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r-- | code/client/cl_ui.c | 4 |
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; |