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

View File

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