- added a new dmflag for allowing switching to weapons without ammo.
SVN r2346 (trunk)
This commit is contained in:
parent
e848fa3c4c
commit
bdd2ebfe14
6 changed files with 17 additions and 7 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue