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.

This commit is contained in:
Richard Helgeby 2010-02-14 17:07:43 +01:00
parent b39a684fd8
commit 04a8fef584
1 changed files with 6 additions and 0 deletions

View File

@ -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]);