From 66791ca8dd5b854f0f31d6a83f8e5552eec88545 Mon Sep 17 00:00:00 2001 From: tma Date: Sun, 6 Jul 2008 15:47:15 +0000 Subject: * Don't start UI when starting client binary with +set dedicated 1 git-svn-id: svn://svn.icculus.org/quake3/trunk@1415 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'code/client') diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 21a56f6..2d3a2d4 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -1526,10 +1526,6 @@ void CL_Connect_f( void ) { CL_Disconnect( qtrue ); Con_Close(); - /* MrE: 2000-09-13: now called in CL_DownloadsComplete - CL_FlushMemory( ); - */ - Q_strncpyz( cls.servername, server, sizeof(cls.servername) ); if (!NET_StringToAdr(cls.servername, &clc.serverAddress, family) ) { @@ -2755,6 +2751,10 @@ void CL_StartHunkUsers( qboolean rendererOnly ) { S_BeginRegistration(); } + if( com_dedicated->integer ) { + return; + } + if ( !cls.uiStarted ) { cls.uiStarted = qtrue; CL_InitUI(); -- cgit v1.2.3