Permalink
Browse files

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.
  • Loading branch information...
1 parent cb39030 commit d9312799c338509d7bf3d1f9dcfd3d35276127d3 @psychonic psychonic committed Jan 3, 2017
Showing with 0 additions and 5 deletions.
  1. +0 −5 core/smn_events.cpp
View
@@ -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);

0 comments on commit d931279

Please sign in to comment.