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:
Nicholas Hastings 2017-01-03 12:41:46 -05:00
parent cb39030cce
commit d9312799c3

View File

@ -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);