From 7c0a5b501d42a1034a76edfbb79695509674fe17 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Sat, 12 Mar 2016 16:51:38 +0100 Subject: [PATCH] Fix typo inverting bLocalOnly parameter in natives BroadcastScreenMessage and BroadcastChatMessage sent to local clients only while the parameter told them not to. --- natives.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/natives.cpp b/natives.cpp index dde2ba9..f1b35db 100644 --- a/natives.cpp +++ b/natives.cpp @@ -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);