mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 09:51:21 +00:00
catch EXEC_NOW on quit to prevent deleting a running vm
This commit is contained in:
parent
0811b1c99c
commit
8d1a5f8b32
1 changed files with 3 additions and 1 deletions
|
@ -802,7 +802,9 @@ intptr_t CL_UISystemCalls( intptr_t *args ) {
|
||||||
|
|
||||||
case UI_CMD_EXECUTETEXT:
|
case UI_CMD_EXECUTETEXT:
|
||||||
if(args[1] == 0
|
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));
|
Com_Printf (S_COLOR_YELLOW "turning EXEC_NOW '%.11s' into EXEC_INSERT\n", (const char*)VMA(2));
|
||||||
args[1] = EXEC_INSERT;
|
args[1] = EXEC_INSERT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue