Update Forward Creation to Newer GlobalForward Methodmap (#1143)

This commit is contained in:
proobs 2020-02-07 01:27:44 -05:00 committed by GitHub
parent c052eb3969
commit 4a8c869b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,11 +33,11 @@
void FireOnClientMute(int client, bool muteState)
{
static Handle hForward;
static GlobalForward hForward;
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);
@ -48,11 +48,11 @@ void FireOnClientMute(int client, bool muteState)
void FireOnClientGag(int client, bool gagState)
{
static Handle hForward;
static GlobalForward hForward;
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);