Skip to content

Commit

Permalink
* Don't start UI when starting client binary with +set dedicated 1
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jul 6, 2008
1 parent 9d46969 commit 391bb74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/client/cl_main.c
Expand Up @@ -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) ) {
Expand Down Expand Up @@ -2755,6 +2751,10 @@ void CL_StartHunkUsers( qboolean rendererOnly ) {
S_BeginRegistration();
}

if( com_dedicated->integer ) {
return;
}

if ( !cls.uiStarted ) {
cls.uiStarted = qtrue;
CL_InitUI();
Expand Down

0 comments on commit 391bb74

Please sign in to comment.