mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-03-10 19:32:32 +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
|
//Makro - this was a few lines below
|
||||||
if (!ent || !ent->client || ent->client->ps.pm_type == PM_SPECTATOR)
|
if (!ent || !ent->client || ent->client->ps.pm_type == PM_SPECTATOR)
|
||||||
return;
|
return;
|
||||||
|
//JBravo: lets make 100% sure no dead people unzoom
|
||||||
|
if (ent->health <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
ent->client->weapon_attempts--;
|
ent->client->weapon_attempts--;
|
||||||
if (ent->client->weapon_attempts < 0)
|
if (ent->client->weapon_attempts < 0)
|
||||||
|
|
Loading…
Reference in a new issue