git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4669
d7cf8633-e32d-0410-b094-
e92efae38249
}
isdown = true;
+ // disconnect client from server if active
+ CL_Disconnect();
+
+ // shut down local server if active
+ Host_ShutdownServer (false);
+
// Shutdown menu
if(MR_Shutdown)
MR_Shutdown();
==================
*/
-extern qboolean host_shuttingdown;
void Host_Quit_f (void)
{
- host_shuttingdown = true;
- CL_Disconnect ();
- Host_ShutdownServer(false);
-
Sys_Quit ();
}
Sys_Print(msg);
}
+extern qboolean host_shuttingdown;
void Sys_Quit (void)
{
+ host_shuttingdown = true;
Host_Shutdown();
exit(0);
}