* (bug 3641) Server is left running following a local disconnect

This commit is contained in:
Tim Angus 2008-05-12 10:49:02 +00:00
parent a857487f9b
commit b2207b250f

View file

@ -277,6 +277,7 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
Cvar_Set("com_errorMessage", com_errorMessage);
if (code == ERR_DISCONNECT || code == ERR_SERVERDISCONNECT) {
SV_Shutdown( "Server disconnected" );
CL_Disconnect( qtrue );
VM_Forced_Unload_Start();
CL_FlushMemory( );