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 2008-04-06 12:59:35 +00:00
parent 8bcb33892e
commit 43ac1eca6a
3 changed files with 21 additions and 2 deletions

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;