summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-17 19:25:04 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-17 19:25:04 +0000
commit0297f504cb6467826e35d3c2a86d93d3964058f2 (patch)
tree007bf6a25927293df7be0cf14facb298504224f2 /crawl-ref/source/itemprop.cc
parentb305e13fcd4ff065144a40f7dd8a2d328b6fbdf5 (diff)
downloadcrawl-ref-0297f504cb6467826e35d3c2a86d93d3964058f2.tar.gz
crawl-ref-0297f504cb6467826e35d3c2a86d93d3964058f2.zip
Add still more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7464 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 58c46a4879..4290ed583e 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1543,11 +1543,11 @@ hands_reqd_type hands_reqd( const item_def &item, size_type size )
}
// Adjust handedness for size only for non-whip melee weapons.
- if (!is_range_weapon( item )
+ if (!is_range_weapon(item)
&& item.sub_type != WPN_WHIP
&& item.sub_type != WPN_DEMON_WHIP)
{
- fit = cmp_weapon_size( item, size );
+ fit = cmp_weapon_size(item, size);
// Adjust handedness for non-medium races:
// (XX values don't matter, see fit_weapon_wieldable_size)
@@ -2085,13 +2085,13 @@ bool is_throwable( const item_def &wpn, size_type bodysize )
return (Weapon_prop[ Weapon_index[wpn.sub_type] ].throwable);
else if (wpn.base_type == OBJ_MISSILES)
{
- if (bodysize < SIZE_MEDIUM && wpn.sub_type == MI_JAVELIN)
- return (false);
- if (bodysize < SIZE_MEDIUM && wpn.sub_type == MI_THROWING_NET)
+ if (bodysize < SIZE_MEDIUM
+ && (wpn.sub_type == MI_JAVELIN || wpn.sub_type == MI_THROWING_NET))
+ {
return (false);
+ }
return (Missile_prop[ Missile_index[wpn.sub_type] ].throwable);
}
-
return (false);
}