r1333 - trunk/code/qcommon
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Apr 29 18:49:37 EDT 2008
Author: thilo
Date: 2008-04-29 18:49:37 -0400 (Tue, 29 Apr 2008)
New Revision: 1333
Modified:
trunk/code/qcommon/common.c
Log:
Make forced unloading work in more cases than just server disconnects
Modified: trunk/code/qcommon/common.c
===================================================================
--- trunk/code/qcommon/common.c 2008-04-28 07:10:32 UTC (rev 1332)
+++ trunk/code/qcommon/common.c 2008-04-29 22:49:37 UTC (rev 1333)
@@ -289,7 +289,9 @@
Com_Printf ("********************\nERROR: %s\n********************\n", com_errorMessage);
SV_Shutdown (va("Server crashed: %s", com_errorMessage));
CL_Disconnect( qtrue );
+ VM_Forced_Unload_Start();
CL_FlushMemory( );
+ VM_Forced_Unload_Done();
FS_PureServerSetLoadedPaks("", "");
com_errorEntered = qfalse;
longjmp (abortframe, -1);
@@ -297,7 +299,9 @@
SV_Shutdown( "Server didn't have CD" );
if ( com_cl_running && com_cl_running->integer ) {
CL_Disconnect( qtrue );
+ VM_Forced_Unload_Start();
CL_FlushMemory( );
+ VM_Forced_Unload_Done();
com_errorEntered = qfalse;
CL_CDDialog();
} else {
More information about the quake3-commits
mailing list