Fixed bug 23. Added a mother zombie check before respawning as zombie on suicide by world damage.

This commit is contained in:
richard 2009-04-01 19:07:07 +02:00
parent f9d0a96d77
commit 74cacd5e75
1 changed files with 1 additions and 1 deletions

View File

@ -901,7 +901,7 @@ RespawnPlayer(client)
return;
}
if (GetConVarBool(gCvars[CVAR_SUICIDE_WORLD_DAMAGE]) && gKilledByWorld[client])
if (zombieSpawned && GetConVarBool(gCvars[CVAR_SUICIDE_WORLD_DAMAGE]) && gKilledByWorld[client])
{
Zombify(client, 0);
gKilledByWorld[client] = false;