summaryrefslogtreecommitdiff
path: root/src/cgame/cg_weapons.c
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2012-07-16 01:38:21 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:26:21 +0000
commitc21fc9efb4694f66366645487a2add25abdf3590 (patch)
tree1fbee40f767a1bbd3f6a6426fb4b98473f583746 /src/cgame/cg_weapons.c
parentc78e04f4c834d88dbada2e961e65b43c7bfbf424 (diff)
* Simplify some weapon-related code (re r1431)
Diffstat (limited to 'src/cgame/cg_weapons.c')
-rw-r--r--src/cgame/cg_weapons.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c
index 0d50e421..6d09d3d9 100644
--- a/src/cgame/cg_weapons.c
+++ b/src/cgame/cg_weapons.c
@@ -1353,10 +1353,7 @@ CG_WeaponSelectable
*/
static qboolean CG_WeaponSelectable( weapon_t weapon )
{
- if( !BG_InventoryContainsWeapon( weapon, cg.snap->ps.stats ) )
- return qfalse;
-
- return qtrue;
+ return BG_InventoryContainsWeapon( weapon, cg.snap->ps.stats );
}