engine/EngineHostCommand.c
/*	User command to connect to server
*/
User command to connect to server
User command to connect to server
void Host_Connect_f (void)
{
	char	name[MAX_QPATH];
	cls.demonum = -1;		
	if (cls.demoplayback)
	{
		CL_StopPlayback ();
		CL_Disconnect ();
	}
	strcpy(name, Cmd_Argv(1));
	CL_EstablishConnection (name);
	Host_Reconnect_f ();
}
void Host_Connect_f ( void ) { char name [ MAX_QPATH ] ; cls . demonum = -1 ; if ( cls . demoplayback ) { CL_StopPlayback ( ) ; CL_Disconnect ( ) ; } strcpy ( name , Cmd_Argv ( 1 ) ) ; CL_EstablishConnection ( name ) ; Host_Reconnect_f ( ) ; }
User command to connect to server
User command to connect to server
// stop demo loop in case this fails