Fix callback from amx_clientcmd not working properly (#518)
This commit is contained in:
parent
ac57ed5b44
commit
605d1a5b1e
@ -373,8 +373,8 @@ void UTIL_FakeClientCommand(edict_t *pEdict, const char *cmd, const char *arg1,
|
||||
{
|
||||
if ((*aa).matchCommandLine(cmd, arg1) && (*aa).getPlugin()->isExecutable((*aa).getFunction()))
|
||||
{
|
||||
if (executeForwards((*aa).getFunction(), static_cast<cell>(GET_PLAYER_POINTER(pEdict)->index)),
|
||||
static_cast<cell>((*aa).getFlags()), static_cast<cell>((*aa).getId()) > 0)
|
||||
if (executeForwards((*aa).getFunction(), static_cast<cell>(GET_PLAYER_POINTER(pEdict)->index),
|
||||
static_cast<cell>((*aa).getFlags()), static_cast<cell>((*aa).getId())) > 0)
|
||||
{
|
||||
g_fakecmd.notify = false;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user