mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
engine: print only command name in Unknown command message, rather than a full line
This commit is contained in:
parent
a2f741fe8a
commit
1ffe050205
@ -1093,7 +1093,7 @@ static void Cmd_ExecuteStringWithPrivilegeCheck( const char *text, qboolean isPr
|
|||||||
if( Cvar_CommandWithPrivilegeCheck( cvar, isPrivileged )) return;
|
if( Cvar_CommandWithPrivilegeCheck( cvar, isPrivileged )) return;
|
||||||
|
|
||||||
if( host.apply_game_config )
|
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
|
// forward the command line to the server, so the entity DLL can parse it
|
||||||
if( host.type == HOST_NORMAL )
|
if( host.type == HOST_NORMAL )
|
||||||
@ -1107,7 +1107,7 @@ static void Cmd_ExecuteStringWithPrivilegeCheck( const char *text, qboolean isPr
|
|||||||
#endif // XASH_DEDICATED
|
#endif // XASH_DEDICATED
|
||||||
if( Cvar_VariableInteger( "host_gameloaded" ))
|
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 ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user