- Fix already defined command warnings for minimize
- Fix recursive CL_Shutdown warning and "command already defined" warnings when quitting while playing on a server that changed the gamedir.
This commit is contained in:
parent
404fe4e6e0
commit
8ab91bde8e
6 changed files with 17 additions and 11 deletions
|
@ -333,8 +333,8 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
|
|||
longjmp (abortframe, -1);
|
||||
} else {
|
||||
VM_Forced_Unload_Start();
|
||||
CL_Shutdown (va("Client fatal crashed: %s", com_errorMessage), qtrue);
|
||||
SV_Shutdown (va("Server fatal crashed: %s", com_errorMessage));
|
||||
CL_Shutdown(va("Client fatal crashed: %s", com_errorMessage), qtrue, qtrue);
|
||||
SV_Shutdown(va("Server fatal crashed: %s", com_errorMessage));
|
||||
VM_Forced_Unload_Done();
|
||||
}
|
||||
|
||||
|
@ -361,8 +361,8 @@ void Com_Quit_f( void ) {
|
|||
// Sys_Quit will kill this process anyways, so
|
||||
// a corrupt call stack makes no difference
|
||||
VM_Forced_Unload_Start();
|
||||
SV_Shutdown (p[0] ? p : "Server quit");
|
||||
CL_Shutdown (p[0] ? p : "Client quit", qtrue);
|
||||
SV_Shutdown(p[0] ? p : "Server quit");
|
||||
CL_Shutdown(p[0] ? p : "Client quit", qtrue, qtrue);
|
||||
VM_Forced_Unload_Done();
|
||||
Com_Shutdown ();
|
||||
FS_Shutdown(qtrue);
|
||||
|
@ -2411,7 +2411,7 @@ void Com_GameRestart(int checksumFeed, qboolean disconnect)
|
|||
if(disconnect)
|
||||
CL_Disconnect(qfalse);
|
||||
|
||||
CL_Shutdown("Game directory changed", disconnect);
|
||||
CL_Shutdown("Game directory changed", disconnect, qfalse);
|
||||
}
|
||||
|
||||
FS_Restart(checksumFeed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue