From: havoc Date: Mon, 17 Oct 2011 11:16:53 +0000 (+0000) Subject: init/shutdown thread system in dedicated server as well X-Git-Tag: xonotic-v0.6.0~163^2~123 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf8764923af1ad07dcf066b796eace70dca9ae7f;p=xonotic%2Fdarkplaces.git init/shutdown thread system in dedicated server as well git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11434 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host.c b/host.c index 9965f5c6..f2e66e3a 100644 --- a/host.c +++ b/host.c @@ -1163,6 +1163,8 @@ static void Host_Init (void) Host_InitLocal(); Host_ServerOptions(); + Thread_Init(); + if (cls.state == ca_dedicated) Cmd_AddCommand ("disconnect", CL_Disconnect_f, "disconnect from server (or disconnect all clients if running a server)"); else @@ -1172,7 +1174,6 @@ static void Host_Init (void) R_Modules_Init(); Palette_Init(); MR_Init_Commands(); - Thread_Init(); VID_Shared_Init(); VID_Init(); Render_Init(); @@ -1314,9 +1315,9 @@ void Host_Shutdown(void) { R_Modules_Shutdown(); VID_Shutdown(); - Thread_Shutdown(); } + Thread_Shutdown(); Cmd_Shutdown(); Key_Shutdown(); CL_Shutdown();