* Don't start UI when starting client binary with +set dedicated 1

This commit is contained in:
Tim Angus 2008-07-06 15:47:15 +00:00
parent 9d469692f3
commit 391bb74c44
1 changed files with 4 additions and 4 deletions

View File

@ -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();