r1298 - trunk/code/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Apr 6 08:59:27 EDT 2008
Author: ludwig
Date: 2008-04-06 08:59:26 -0400 (Sun, 06 Apr 2008)
New Revision: 1298
Modified:
trunk/code/client/cl_ui.c
Log:
catch EXEC_NOW on quit to prevent deleting a running vm
Modified: trunk/code/client/cl_ui.c
===================================================================
--- trunk/code/client/cl_ui.c 2008-04-06 02:24:07 UTC (rev 1297)
+++ trunk/code/client/cl_ui.c 2008-04-06 12:59:26 UTC (rev 1298)
@@ -802,7 +802,9 @@
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;
More information about the quake3-commits
mailing list