From 04a8fef584fd84d212660ed0d72d75bc4a6a8d23 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Sun, 14 Feb 2010 17:07:43 +0100 Subject: [PATCH] Imported fix from dev: 649:46c12773c8df - Fixed problems that came up if a client was infected through admin after the round started, but before the freezetime expired. --- src/zr/infect.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zr/infect.inc b/src/zr/infect.inc index 5668146..3ab9a3d 100644 --- a/src/zr/infect.inc +++ b/src/zr/infect.inc @@ -362,6 +362,12 @@ InfectOnRoundFreezeEnd() KillTimer(tInfect); } + // If the zombie has spawned already (had to be through admin) then stop. + if (g_bZombieSpawned) + { + return; + } + // Get min and max times. new Float:infectspawntimemin = GetConVarFloat(g_hCvarsList[CVAR_INFECT_SPAWNTIME_MIN]); new Float:infectspawntimemax = GetConVarFloat(g_hCvarsList[CVAR_INFECT_SPAWNTIME_MAX]);