mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-02 06:33:30 +00:00
dead player proofing the unzoom command
This commit is contained in:
parent
020e417dfb
commit
39d26f7b4f
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue