* 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

View file

@ -1526,10 +1526,6 @@ void CL_Connect_f( void ) {
CL_Disconnect( qtrue ); CL_Disconnect( qtrue );
Con_Close(); Con_Close();
/* MrE: 2000-09-13: now called in CL_DownloadsComplete
CL_FlushMemory( );
*/
Q_strncpyz( cls.servername, server, sizeof(cls.servername) ); Q_strncpyz( cls.servername, server, sizeof(cls.servername) );
if (!NET_StringToAdr(cls.servername, &clc.serverAddress, family) ) { if (!NET_StringToAdr(cls.servername, &clc.serverAddress, family) ) {
@ -2755,6 +2751,10 @@ void CL_StartHunkUsers( qboolean rendererOnly ) {
S_BeginRegistration(); S_BeginRegistration();
} }
if( com_dedicated->integer ) {
return;
}
if ( !cls.uiStarted ) { if ( !cls.uiStarted ) {
cls.uiStarted = qtrue; cls.uiStarted = qtrue;
CL_InitUI(); CL_InitUI();