From 3a5d57603fd2c8a151e6f5246c1d29b3dd286b51 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 13 Jan 2026 07:46:54 +0500 Subject: [PATCH] engine: print unknown command message in dedicated mode and when not on server --- engine/common/cmd.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/engine/common/cmd.c b/engine/common/cmd.c index f13550d6..dd4754d1 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -1019,19 +1019,15 @@ static void Cmd_ExecuteStringWithPrivilegeCheck( const char *text, qboolean isPr 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 ) - { #if !XASH_DEDICATED - if( cls.state >= ca_connected ) - { - Cmd_ForwardToServer(); - } - else + if( cls.state >= ca_connected ) + { + Cmd_ForwardToServer(); + } + else #endif // XASH_DEDICATED - if( Cvar_VariableInteger( "host_gameloaded" )) - { - Con_Printf( S_WARN "Unknown command \"%s\"\n", Cmd_Argv( 0 ) ); - } + { + Con_Printf( S_WARN "Unknown command \"%s\"\n", Cmd_Argv( 0 ) ); } }