engine: client: implement pfnFilteredClientCmd
This commit is contained in:
parent
f9d1d14848
commit
c79a649d97
1 changed files with 15 additions and 4 deletions
|
@ -1744,6 +1744,20 @@ static int GAME_EXPORT pfnClientCmd( const char *szCmdString )
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
=============
|
||||||
|
pfnFilteredClientCmd
|
||||||
|
=============
|
||||||
|
*/
|
||||||
|
static int GAME_EXPORT pfnFilteredClientCmd( const char *szCmdString )
|
||||||
|
{
|
||||||
|
if( !COM_CheckString( szCmdString ))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
Cbuf_AddFilteredText( szCmdString );
|
||||||
|
Cbuf_AddFilteredText( "\n" );
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=============
|
=============
|
||||||
pfnGetPlayerInfo
|
pfnGetPlayerInfo
|
||||||
|
@ -3878,10 +3892,7 @@ static cl_enginefunc_t gEngfuncs =
|
||||||
pfnGetAppID,
|
pfnGetAppID,
|
||||||
Cmd_AliasGetList,
|
Cmd_AliasGetList,
|
||||||
pfnVguiWrap2_GetMouseDelta,
|
pfnVguiWrap2_GetMouseDelta,
|
||||||
|
pfnFilteredClientCmd
|
||||||
// HACKHACK: added it here so it wouldn't cause overflow or segfault
|
|
||||||
// TODO: itself client command filtering is not implemented yet
|
|
||||||
pfnClientCmd
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void CL_UnloadProgs( void )
|
void CL_UnloadProgs( void )
|
||||||
|
|
Loading…
Add table
Reference in a new issue