From: divverent Date: Sat, 19 Jan 2008 11:20:21 +0000 (+0000) Subject: damn... make sure Host_Error prevents SV_Shutdown from getting called, or it could... X-Git-Tag: xonotic-v0.1.0preview~2525 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=705afcd26bd11d9bfb2624ecca81778c6152b000;p=xonotic%2Fdarkplaces.git 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 --- 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 " ; /*