Allow direct event FireToClient if broadcast disabled.
Event.FireToClient should not care whether or not broadcasting is enabled for the event since we're already intentionally not broadcasting.
This commit is contained in:
parent
cb39030cce
commit
d9312799c3
@ -160,11 +160,6 @@ static cell_t sm_FireEventToClient(IPluginContext *pContext, const cell_t *param
|
||||
return pContext->ThrowNativeError("Invalid game event handle %x (error %d)", hndl, err);
|
||||
}
|
||||
|
||||
if (pInfo->bDontBroadcast)
|
||||
{
|
||||
return pContext->ThrowNativeError("Game event \"%s\" is set to not be broadcasted to clients", pInfo->pEvent->GetName());
|
||||
}
|
||||
|
||||
int client = params[2];
|
||||
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user