Fix typo inverting bLocalOnly parameter in natives

BroadcastScreenMessage and BroadcastChatMessage sent to local clients
only while the parameter told them not to.
This commit is contained in:
Peace-Maker 2016-03-12 16:51:38 +01:00
parent 5b69a6f039
commit 7c0a5b501d

View File

@ -271,7 +271,7 @@ static cell_t Native_BroadcastScreenMessage(IPluginContext *pContext, const cell
int ret = 1;
bool bLocalOnly = params[1] != 0;
if (bLocalOnly)
if (!bLocalOnly)
hltvserver->GetHLTVServer()->BroadcastEvent(msg);
else
ret = BroadcastEventLocal(hltvserver->GetHLTVServer(), msg, false);
@ -327,7 +327,7 @@ static cell_t Native_BroadcastChatMessage(IPluginContext *pContext, const cell_t
int ret = 1;
bool bLocalOnly = params[1] != 0;
if (bLocalOnly)
if (!bLocalOnly)
hltvserver->GetHLTVServer()->BroadcastEvent(msg);
else
ret = BroadcastEventLocal(hltvserver->GetHLTVServer(), msg, false);