From 16de1d1a9f82ac49be187267b4edbd9f0af7e3ab Mon Sep 17 00:00:00 2001 From: Oleg Tsvetkov Date: Sun, 12 Jun 2016 01:31:08 +0300 Subject: [PATCH] Set several timers variable value to the INVALID_HANDLE after KillTimer call. --- src/zr/overlays.inc | 1 + src/zr/respawn.inc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/zr/overlays.inc b/src/zr/overlays.inc index 726d81d..71b816c 100644 --- a/src/zr/overlays.inc +++ b/src/zr/overlays.inc @@ -154,6 +154,7 @@ OverlaysOnRoundStart() new Float:overlaysupdate = GetConVarFloat(g_hCvarsList[CVAR_OVERLAYS_UPDATE_TIME]); if (overlaysupdate <= 0.0) { + tOverlays = INVALID_HANDLE; return; } diff --git a/src/zr/respawn.inc b/src/zr/respawn.inc index 4176749..f32daa1 100644 --- a/src/zr/respawn.inc +++ b/src/zr/respawn.inc @@ -98,6 +98,7 @@ RespawnOnClientDeath(client, attacker, const String:weapon[]) // If player was infected, then stop. if (StrEqual(weapon, "zombie_claws_of_death", false)) { + tRespawn[client] = INVALID_HANDLE; return; } @@ -105,6 +106,7 @@ RespawnOnClientDeath(client, attacker, const String:weapon[]) new bool:respawn = GetConVarBool(g_hCvarsList[CVAR_RESPAWN]); if (!respawn) { + tRespawn[client] = INVALID_HANDLE; return; }