mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-01 22:30:53 +00:00
Fixed the wepon command for dead players
This commit is contained in:
parent
5a42fdd5cf
commit
020e417dfb
1 changed files with 8 additions and 5 deletions
|
@ -2171,6 +2171,14 @@ void CG_Weapon_f(void)
|
|||
//CG_Printf("No snapshot: normally exiting\n");
|
||||
return;
|
||||
}
|
||||
///Elder: spectator?
|
||||
if (cg.snap->ps.pm_flags & PMF_FOLLOW) {
|
||||
return;
|
||||
}
|
||||
//JBravo: Not dead
|
||||
if (cg.snap->ps.stats[STAT_HEALTH] < 0) {
|
||||
return;
|
||||
}
|
||||
// if we are going into the intermission, don't do anything
|
||||
if (cg.intermissionStarted) {
|
||||
return;
|
||||
|
@ -2194,11 +2202,6 @@ void CG_Weapon_f(void)
|
|||
if (cg.snap->ps.stats[STAT_BURST] > 0)
|
||||
return;
|
||||
|
||||
///Elder: spectator?
|
||||
if (cg.snap->ps.pm_flags & PMF_FOLLOW) {
|
||||
return;
|
||||
}
|
||||
|
||||
num = atoi(CG_Argv(1));
|
||||
|
||||
if (num < 1 || num > 15) {
|
||||
|
|
Loading…
Reference in a new issue