set flag to allow forced unload of a running VM

required to prevent a client from exiting if the server disconnects (bug 3585)
This commit is contained in:
Ludwig Nussel committed 2008-04-06 12:59:35 +00:00
1 parent 8bcb33892e
commit 43ac1eca6a
3 files changed
+21 -2

No files matched your search

+2
View File
@@ -277,7 +277,9 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
if (code == ERR_DISCONNECT || code == ERR_SERVERDISCONNECT) {
CL_Disconnect( qtrue );
VM_Forced_Unload_Start();
CL_FlushMemory( );
VM_Forced_Unload_Done();
// make sure we can get at our local stuff
FS_PureServerSetLoadedPaks("", "");
com_errorEntered = qfalse;