forked from UNLOZE/sm-plugins
CloseHandle -> delete
This commit is contained in:
@@ -54,7 +54,7 @@ public void OnPluginStart()
|
||||
|
||||
HookConVarChange((cvar = CreateConVar("sm_happyhour_message_interval", "60.0", "interval for repetetive message of happy hour in chat")), g_cvMessageTimer);
|
||||
g_fMessageTimer = cvar.FloatValue;
|
||||
CloseHandle(cvar);
|
||||
delete cvar;
|
||||
|
||||
RegConsoleCmd("sm_hh", Command_DisplayHappyHour, "Shows if happy hour is currently enabled or not");
|
||||
|
||||
@@ -87,8 +87,7 @@ public void g_cvMessageTimer(ConVar convar, const char[] oldValue, const char[]
|
||||
{
|
||||
g_fMessageTimer = convar.FloatValue;
|
||||
|
||||
if (g_h_MessageTimer != INVALID_HANDLE && CloseHandle(g_h_MessageTimer))
|
||||
g_h_MessageTimer = INVALID_HANDLE;
|
||||
delete g_h_MessageTimer;
|
||||
|
||||
g_h_MessageTimer = CreateTimer(g_fMessageTimer, MessageHappyHour, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user