mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 10:28:34 +00:00
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
e44789ba8b
commit
369e95f6d2
@ -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