]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
damn... make sure Host_Error prevents SV_Shutdown from getting called, or it could...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Jan 2008 11:20:21 +0000 (11:20 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Jan 2008 11:20:21 +0000 (11:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7983 d7cf8633-e32d-0410-b094-e92efae38249

prvm_exec.c
svvm_cmds.c

index a14c17d3ca2d063f584990e2c26462c99e2e226d..95a94196b5f721690d4ef124f0b604c5a22774f1 100644 (file)
@@ -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);
index 4f43379eaffc1e1d659233194cd49ba4f4eeb140..4a0dae564bbf61370f3851968ffca03297ea0154 100644 (file)
@@ -148,6 +148,7 @@ char *vm_sv_extensions =
 "DP_CON_BESTWEAPON "
 "DP_QC_STRREPLACE "
 "DP_QC_CRC16 "
+"DP_SV_SHUTDOWN "
 ;
 
 /*