summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.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/menu.cc
parent51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff)
downloadcrawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz
crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r--crawl-ref/source/menu.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc
index 289c4e53bf..bec505da8f 100644
--- a/crawl-ref/source/menu.cc
+++ b/crawl-ref/source/menu.cc
@@ -1296,7 +1296,7 @@ int Menu::item_colour(int, const MenuEntry *entry) const
if (highlighter)
icol = highlighter->entry_colour(entry);
- return (icol == -1 ? entry->colour : icol);
+ return icol == -1 ? entry->colour : icol;
}
void Menu::draw_title()
@@ -1349,7 +1349,7 @@ void Menu::write_title()
bool Menu::in_page(int index) const
{
- return (index >= first_entry && index < first_entry + pagesize);
+ return index >= first_entry && index < first_entry + pagesize;
}
void Menu::draw_item(int index) const
@@ -1947,7 +1947,7 @@ bool formatted_scroller::page_down()
break;
}
first_entry = target;
- return (old_first != first_entry);
+ return old_first != first_entry;
}
bool formatted_scroller::page_up()
@@ -1969,7 +1969,7 @@ bool formatted_scroller::page_up()
--first_entry;
}
- return (old_first != first_entry);
+ return old_first != first_entry;
}
bool formatted_scroller::line_down()