mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-12 21:22:14 +00:00
Make forced unloading work in more cases than just server disconnects
This commit is contained in:
parent
2f71e61b1d
commit
82e32bdf41
1 changed files with 4 additions and 0 deletions
|
@ -289,7 +289,9 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
|
|||
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 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
|
|||
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 {
|
||||
|
|
Loading…
Reference in a new issue