mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: print unknown command message in dedicated mode and when not on server
This commit is contained in:
@@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user