summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/quiver.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
commitc41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch)
tree764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/quiver.cc
parentb80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff)
downloadcrawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz
crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/quiver.cc')
-rw-r--r--crawl-ref/source/quiver.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/crawl-ref/source/quiver.cc b/crawl-ref/source/quiver.cc
index e708b007b5..48fc4cfaa0 100644
--- a/crawl-ref/source/quiver.cc
+++ b/crawl-ref/source/quiver.cc
@@ -542,26 +542,26 @@ static bool _item_matches(const item_def &item, fire_type types,
if (item.inscription.find(manual ? "+F" : "+f", 0)
!= std::string::npos)
{
- return (true);
+ return true;
}
if (item.base_type == OBJ_MISSILES)
{
if ((types & FIRE_DART) && item.sub_type == MI_DART)
- return (true);
+ return true;
if ((types & FIRE_STONE) && item.sub_type == MI_STONE)
- return (true);
+ return true;
if ((types & FIRE_JAVELIN) && item.sub_type == MI_JAVELIN)
- return (true);
+ return true;
if ((types & FIRE_ROCK) && item.sub_type == MI_LARGE_ROCK)
- return (true);
+ return true;
if ((types & FIRE_NET) && item.sub_type == MI_THROWING_NET)
- return (true);
+ return true;
if (types & FIRE_LAUNCHER)
{
if (launcher && item.launched_by(*launcher))
- return (true);
+ return true;
}
}
else if (item.base_type == OBJ_WEAPONS && is_throwable(&you, item))
@@ -570,18 +570,18 @@ static bool _item_matches(const item_def &item, fire_type types,
&& item.special == SPWPN_RETURNING
&& item_ident(item, ISFLAG_KNOW_TYPE))
{
- return (true);
+ return true;
}
if ((types & FIRE_DAGGER) && item.sub_type == WPN_DAGGER)
- return (true);
+ return true;
if ((types & FIRE_SPEAR) && item.sub_type == WPN_SPEAR)
- return (true);
+ return true;
if ((types & FIRE_HAND_AXE) && item.sub_type == WPN_HAND_AXE)
- return (true);
+ return true;
if ((types & FIRE_CLUB) && item.sub_type == WPN_CLUB)
- return (true);
+ return true;
}
- return (false);
+ return false;
}
// Returns inv slot that contains an item that looks like item,