From 7e1ecfcb2f8a1015c4ede06c65e33f80530b015c Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 26 Feb 2006 05:50:37 +0000 Subject: [PATCH] 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 --- engine/common/cmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index fa0a8a754..75d5b33b5 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -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; } }