diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-14 17:21:58 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-15 21:03:43 +0100 |
commit | 04ab49bde8bfadd87c7897b3319238b1da561812 (patch) | |
tree | afd986d551f519de290313bb485d0ee1bfa743c2 /crawl-ref/source/command.cc | |
parent | 51aa1dcc06634d7d1851e964ac63b3c1fca3e1cf (diff) | |
download | crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.tar.gz crawl-ref-04ab49bde8bfadd87c7897b3319238b1da561812.zip |
Drop unnecessary parentheses from return statements.
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r-- | crawl-ref/source/command.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index fad698aa5d..e007feae79 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -770,7 +770,7 @@ static bool _compare_mon_toughness(MenuEntry *entry_a, MenuEntry* entry_b) string b_name = mons_type_name(b->type, DESC_PLAIN); return (lowercase(a_name) < lowercase(b_name)); } - return (a_toughness > b_toughness); + return a_toughness > b_toughness; } class DescMenu : public Menu @@ -950,7 +950,7 @@ static bool _spell_filter(string key, string body) static bool _item_filter(string key, string body) { - return (item_kind_by_name(key).base_type == OBJ_UNASSIGNED); + return item_kind_by_name(key).base_type == OBJ_UNASSIGNED; } static bool _skill_filter(string key, string body) @@ -974,7 +974,7 @@ static bool _skill_filter(string key, string body) static bool _feature_filter(string key, string body) { - return (feat_by_desc(key) == DNGN_UNSEEN); + return feat_by_desc(key) == DNGN_UNSEEN; } static bool _card_filter(string key, string body) |