dead player proofing the unzoom command

This commit is contained in:
Richard Allen 2009-07-01 18:31:03 +00:00
parent 020e417dfb
commit 39d26f7b4f

View file

@ -2635,6 +2635,9 @@ void Cmd_Weapon(gentity_t * ent)
//Makro - this was a few lines below
if (!ent || !ent->client || ent->client->ps.pm_type == PM_SPECTATOR)
return;
//JBravo: lets make 100% sure no dead people unzoom
if (ent->health <= 0)
return;
ent->client->weapon_attempts--;
if (ent->client->weapon_attempts < 0)