Don't spam those q3-assosiated 'cmd already registered' messages

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2026 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-26 05:50:37 +00:00
parent b1a5aab4f8
commit 7e1ecfcb2f

View file

@ -1262,7 +1262,10 @@ qboolean Cmd_AddRemCommand (char *cmd_name, xcommand_t function)
{
if (!Q_strcmp (cmd_name, cmd->name))
{
Con_Printf ("Cmd_AddCommand: %s already defined\n", cmd_name);
if (cmd->function == function) //happens a lot with q3
Con_DPrintf ("Cmd_AddCommand: %s already defined\n", cmd_name);
else
Con_Printf ("Cmd_AddCommand: %s already defined\n", cmd_name);
return false;
}
}