summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-overview.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-23 10:57:35 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-24 00:30:34 +0200
commit1d578dda6fd52327bc9191d353834ce0f246dbcc (patch)
treec53b611c4f484acac407874943a8f744e86a9321 /crawl-ref/source/dgn-overview.cc
parent19c3e5f86f7e658cee713751d82137c95d57ba3f (diff)
downloadcrawl-ref-1d578dda6fd52327bc9191d353834ce0f246dbcc.tar.gz
crawl-ref-1d578dda6fd52327bc9191d353834ce0f246dbcc.zip
Drop a lot of superfluous parentheses.
These can be really confusing, especially if there are operators of different priorities, or multiple levels of parentheses, nearby.
Diffstat (limited to 'crawl-ref/source/dgn-overview.cc')
-rw-r--r--crawl-ref/source/dgn-overview.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/dgn-overview.cc b/crawl-ref/source/dgn-overview.cc
index f249ed7b66..77a4f98337 100644
--- a/crawl-ref/source/dgn-overview.cc
+++ b/crawl-ref/source/dgn-overview.cc
@@ -639,10 +639,10 @@ bool unnotice_feature(const level_pos &pos)
{
StashTrack.remove_shop(pos);
shopping_list.forget_pos(pos);
- return (_unnotice_portal(pos)
- || _unnotice_altar(pos)
- || _unnotice_shop(pos)
- || _unnotice_stair(pos));
+ return _unnotice_portal(pos)
+ || _unnotice_altar(pos)
+ || _unnotice_shop(pos)
+ || _unnotice_stair(pos);
}
void display_overview()
@@ -866,7 +866,7 @@ bool level_annotation_has(string find, level_id li)
{
string str = get_level_annotation(li);
- return (str.find(find) != string::npos);
+ return str.find(find) != string::npos;
}
void annotate_level()