/* ================= CG_InitConsoleCommands Let the client system know about all of our commands so it can perform tab completion ================= */ void CG_InitConsoleCommands( void ) { size_t i; for ( i = 0 ; i < numCommands ; i++ ) cgi_AddCommand( commands[i].cmd ); // // the game server will interpret these commands, which will be automatically // forwarded to the server after they are not recognized locally // for( i = 0; i < numgcmds; i++ ) cgi_AddCommand( gcmds[i] ); }
/* ================= CG_InitConsoleCommands Let the client system know about all of our commands so it can perform tab completion ================= */ void CG_InitConsoleCommands( void ) { int i; for ( i = 0 ; i < sizeof( commands ) / sizeof( commands[0] ) ; i++ ) { cgi_AddCommand( commands[i].cmd ); } }