Fixed bug 23. Added a mother zombie check before respawning as zombie on suicide by world damage.
This commit is contained in:
parent
f9d0a96d77
commit
74cacd5e75
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user