- added a new dmflag for allowing switching to weapons without ammo.

SVN r2346 (trunk)
This commit is contained in:
Christoph Oelckers 2010-05-30 07:47:08 +00:00
commit bdd2ebfe14
6 changed files with 17 additions and 7 deletions

View file

@ -288,7 +288,8 @@ CCMD (slot)
if (slot < NUM_WEAPON_SLOTS)
{
SendItemUse = players[consoleplayer].weapons.Slots[slot].PickWeapon (&players[consoleplayer]);
SendItemUse = players[consoleplayer].weapons.Slots[slot].PickWeapon (&players[consoleplayer],
!(dmflags2 & DF2_DONTCHECKAMMO));
}
}
}