Update Forward Creation to Newer GlobalForward Methodmap (#1143)

This commit is contained in:
proobs
2020-02-06 22:27:44 -08:00
committed by GitHub
parent c052eb3969
commit 4a8c869b7e
+4 -4
View File
@@ -33,11 +33,11 @@
void FireOnClientMute(int client, bool muteState) void FireOnClientMute(int client, bool muteState)
{ {
static Handle hForward; static GlobalForward hForward;
if(hForward == null) if(hForward == null)
{ {
hForward = CreateGlobalForward("BaseComm_OnClientMute", ET_Ignore, Param_Cell, Param_Cell); hForward = new GlobalForward("BaseComm_OnClientMute", ET_Ignore, Param_Cell, Param_Cell);
} }
Call_StartForward(hForward); Call_StartForward(hForward);
@@ -48,11 +48,11 @@ void FireOnClientMute(int client, bool muteState)
void FireOnClientGag(int client, bool gagState) void FireOnClientGag(int client, bool gagState)
{ {
static Handle hForward; static GlobalForward hForward;
if(hForward == null) if(hForward == null)
{ {
hForward = CreateGlobalForward("BaseComm_OnClientGag", ET_Ignore, Param_Cell, Param_Cell); hForward = new GlobalForward("BaseComm_OnClientGag", ET_Ignore, Param_Cell, Param_Cell);
} }
Call_StartForward(hForward); Call_StartForward(hForward);