From 1ffe0502051b5a2f6555601f1095b1dbef456a67 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 4 Jan 2022 08:58:58 +0300 Subject: [PATCH] engine: print only command name in Unknown command message, rather than a full line --- engine/common/cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index 335596dd..eb684a01 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -1093,7 +1093,7 @@ static void Cmd_ExecuteStringWithPrivilegeCheck( const char *text, qboolean isPr if( Cvar_CommandWithPrivilegeCheck( cvar, isPrivileged )) return; if( host.apply_game_config ) - return; // don't send nothing to server: we is a server! + return; // don't send nothing to server: we are a server! // forward the command line to the server, so the entity DLL can parse it if( host.type == HOST_NORMAL ) @@ -1107,7 +1107,7 @@ static void Cmd_ExecuteStringWithPrivilegeCheck( const char *text, qboolean isPr #endif // XASH_DEDICATED if( Cvar_VariableInteger( "host_gameloaded" )) { - Con_Printf( S_WARN "Unknown command \"%s\"\n", text ); + Con_Printf( S_WARN "Unknown command \"%s\"\n", Cmd_Argv( 0 ) ); } } }