/*
Copyright (C) 1996-1997 Id Software, Inc.
+Copyright (C) 2000-2021 DarkPlaces contributors
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Cvar_SetValueQuick(&csqc_progcrc, -1);
Cvar_SetValueQuick(&csqc_progsize, -1);
- SV_LockThreadMutex();
- SV_Shutdown ();
- SV_UnlockThreadMutex();
+ if(host.hook.SV_Shutdown)
+ host.hook.SV_Shutdown();
if (cls.state == ca_dedicated)
Sys_Error ("Host_Error: %s",hosterrorstring2); // dedicated servers exit
host.hook.Disconnect = NULL;
host.hook.ToggleMenu = NULL;
host.hook.CL_Intermission = NULL;
- host.hook.SV_CanSave = NULL;
+ host.hook.SV_Shutdown = NULL;
host.state = host_init;
SV_StopThread();
// shut down local server if active
- SV_LockThreadMutex();
- SV_Shutdown ();
- SV_UnlockThreadMutex();
+ if(host.hook.SV_Shutdown)
+ host.hook.SV_Shutdown();
// AK shutdown PRVM
// AK hmm, no PRVM_Shutdown(); yet