summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg-inv.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-14 17:21:58 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-15 21:03:43 +0100
commit04ab49bde8bfadd87c7897b3319238b1da561812 (patch)
treeafd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/tilereg-inv.cc
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/tilereg-inv.cc')
-rw-r--r--crawl-ref/source/tilereg-inv.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/tilereg-inv.cc b/crawl-ref/source/tilereg-inv.cc
index 90aa3414d1..b678eb88ad 100644
--- a/crawl-ref/source/tilereg-inv.cc
+++ b/crawl-ref/source/tilereg-inv.cc
@@ -224,7 +224,7 @@ static bool _is_true_equipped_item(const item_def &item)
return is_weapon(item);
// Cursed armour and rings are only truly equipped if *not* wielded.
- return (item.link != you.equip[EQ_WEAPON]);
+ return item.link != you.equip[EQ_WEAPON];
}
// Returns whether there's any action you can take with an item in inventory
@@ -259,7 +259,7 @@ static bool _can_use_item(const item_def &item, bool equipped)
// Mummies can't do anything with food or potions.
if (you.species == SP_MUMMY)
- return (item.base_type != OBJ_POTIONS && item.base_type != OBJ_FOOD);
+ return item.base_type != OBJ_POTIONS && item.base_type != OBJ_FOOD;
// In all other cases you can use the item in some way.
return true;
@@ -867,12 +867,12 @@ void InventoryRegion::update()
bool InventoryRegion::_is_prev_button(int idx)
{
// idx is an index in m_items as returned by cursor_index()
- return (m_grid_page>0 && idx == mx*my*m_grid_page-2*m_grid_page);
+ return m_grid_page>0 && idx == mx*my*m_grid_page-2*m_grid_page;
}
bool InventoryRegion::_is_next_button(int idx)
{
// idx is an index in m_items as returned by cursor_index()
- return (idx == mx*my*(m_grid_page+1)-1);
+ return idx == mx*my*(m_grid_page+1)-1;
}
#endif