From 705afcd26bd11d9bfb2624ecca81778c6152b000 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 19 Jan 2008 11:20:21 +0000 Subject: [PATCH] damn... make sure Host_Error prevents SV_Shutdown from getting called, or it could result in a double fault that causes a hard edit git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7983 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_exec.c | 2 ++ svvm_cmds.c | 1 + 2 files changed, 3 insertions(+) diff --git a/prvm_exec.c b/prvm_exec.c index a14c17d3..95a94196 100644 --- a/prvm_exec.c +++ b/prvm_exec.c @@ -429,6 +429,8 @@ void PRVM_Crash(void) if (prog == NULL) return; + prog->funcoffsets.SV_Shutdown = 0; // don't call SV_Shutdown on crash + if( prog->depth > 0 ) { Con_Printf("QuakeC crash report for %s:\n", PRVM_NAME); diff --git a/svvm_cmds.c b/svvm_cmds.c index 4f43379e..4a0dae56 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -148,6 +148,7 @@ char *vm_sv_extensions = "DP_CON_BESTWEAPON " "DP_QC_STRREPLACE " "DP_QC_CRC16 " +"DP_SV_SHUTDOWN " ; /* -- 2.39.2