engine/EngineConsoleCommand.c
/*	Sends the entire command line over to the server
*/
Sends the entire command line over to the server
Sends the entire command line over to the server
void Cmd_ForwardToServer (void)
{
	if(cls.state != ca_connected)
	{
		Con_Printf ("Can't \"%s\", not connected\n", Cmd_Argv(0));
		return;
	}
	else if(cls.demoplayback)
		return;		
	MSG_WriteByte(&cls.message,clc_stringcmd);
	if(Q_strcasecmp(Cmd_Argv(0),"cmd") != 0)
	{
		SZ_Print(&cls.message,Cmd_Argv(0));
		SZ_Print(&cls.message," ");
	}
	if (Cmd_Argc() > 1)
		SZ_Print (&cls.message,Cmd_Args());
	else
		SZ_Print (&cls.message,"\n");
}
void Cmd_ForwardToServer ( void ) { if ( cls . state != ca_connected ) { Con_Printf ( " \" \" \n " , Cmd_Argv ( 0 ) ) ; return ; } else if ( cls . demoplayback ) return ; MSG_WriteByte ( & cls . message , clc_stringcmd ) ; if ( Q_strcasecmp ( Cmd_Argv ( 0 ) , " " ) != 0 ) { SZ_Print ( & cls . message , Cmd_Argv ( 0 ) ) ; SZ_Print ( & cls . message , " " ) ; } if ( Cmd_Argc ( ) > 1 ) SZ_Print ( & cls . message , Cmd_Args ( ) ) ; else SZ_Print ( & cls . message , " \n " ) ; }
Sends the entire command line over to the server
Sends the entire command line over to the server
// not really connected