From 1f26710bd05771e59446150614eed0e3ee04dd7a Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 14 Jan 2022 01:06:48 +0300 Subject: [PATCH] engine: fix add command error messages --- engine/common/cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index 9b3e6c77..b1e510b6 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -671,21 +671,21 @@ static int Cmd_AddCommandEx( const char *funcname, const char *cmd_name, xcomman if( !COM_CheckString( cmd_name )) { - Con_Reportf( S_ERROR "Cmd_AddCommand: NULL name\n" ); + Con_Reportf( S_ERROR "%s: NULL name\n", funcname ); return 0; } // fail if the command is a variable name if( Cvar_FindVar( cmd_name )) { - Con_DPrintf( S_ERROR "Cmd_AddServerCommand: %s already defined as a var\n", cmd_name ); + Con_DPrintf( S_ERROR "%s: %s already defined as a var\n", funcname, cmd_name ); return 0; } // fail if the command already exists if( Cmd_Exists( cmd_name )) { - Con_DPrintf( S_ERROR "Cmd_AddServerCommand: %s already defined\n", cmd_name ); + Con_DPrintf( S_ERROR "%s: %s already defined\n", funcname, cmd_name ); return 0; }