Fixed the wepon command for dead players

This commit is contained in:
Richard Allen 2009-07-01 18:19:44 +00:00
parent 5a42fdd5cf
commit 020e417dfb

View file

@ -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) {