diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-08-07 11:23:15 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-08-08 15:55:12 +0200 |
commit | 8e9ce489a95dc5a99a8f7c24214daab1a9aa3737 (patch) | |
tree | 413632230322181847a7df0ad58bc8717245ca22 /crawl-ref/source/exclude.cc | |
parent | 1401ecdd7c55daa75c9b869111823c394642c1a7 (diff) | |
download | crawl-ref-8e9ce489a95dc5a99a8f7c24214daab1a9aa3737.tar.gz crawl-ref-8e9ce489a95dc5a99a8f7c24214daab1a9aa3737.zip |
Drop a bunch of parentheses from return statements.
This is incomplete, partially because of me getting bored, partially because
of doubts about the point of leaving simple addition/etc in parentheses.
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r-- | crawl-ref/source/exclude.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc index 8ad61c0589..911ea9576c 100644 --- a/crawl-ref/source/exclude.cc +++ b/crawl-ref/source/exclude.cc @@ -31,7 +31,7 @@ extern std::set<std::pair<std::string, level_id> > auto_unique_annotations; static bool _mon_needs_auto_exclude(const monster* mon, bool sleepy = false) { if (mons_is_stationary(mon)) - return (!sleepy); + return !sleepy; // Auto exclusion only makes sense if the monster is still asleep or if it // is lurking (discovered mimics). @@ -117,7 +117,7 @@ void remove_auto_exclude(const monster* mon, bool sleepy) static opacity_type _feat_opacity(dungeon_feature_type feat) { - return (feat_is_opaque(feat) ? OPC_OPAQUE : OPC_CLEAR); + return feat_is_opaque(feat) ? OPC_OPAQUE : OPC_CLEAR; } // A cell is considered clear unless the player knows it's @@ -295,7 +295,7 @@ travel_exclude* exclude_set::get_exclude_root(const coord_def &p) exclude_set::iterator it = exclude_roots.find(p); if (it != exclude_roots.end()) - return (&(it->second)); + return &it->second; return NULL; } |