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:
parent
5b69a6f039
commit
7c0a5b501d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user