diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-07-05 12:14:09 +0200 |
commit | c41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch) | |
tree | 764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/fearmonger.cc | |
parent | b80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff) | |
download | crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip |
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/fearmonger.cc')
-rw-r--r-- | crawl-ref/source/fearmonger.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/fearmonger.cc b/crawl-ref/source/fearmonger.cc index 9ef652c2c7..8e856a66e2 100644 --- a/crawl-ref/source/fearmonger.cc +++ b/crawl-ref/source/fearmonger.cc @@ -29,7 +29,7 @@ bool player::add_fearmonger(const monster* mon) else mpr("The fearful aura is strangely muted, and has no effect on you."); - return (false); + return false; } if (!duration[DUR_AFRAID]) @@ -46,7 +46,7 @@ bool player::add_fearmonger(const monster* mon) fearmongers.push_back(mon->mindex()); } - return (true); + return true; } // Whether player is afraid. @@ -61,8 +61,8 @@ bool player::afraid_of(const monster* mon) const { for (unsigned int i = 0; i < fearmongers.size(); i++) if (fearmongers[i] == mon->mindex()) - return (true); - return (false); + return true; + return false; } // Checks whether a fearmonger keeps you from moving to @@ -76,9 +76,9 @@ monster* player::get_fearmonger(const coord_def &target) const const int newdist = grid_distance(target, mon->pos()); if (olddist > newdist) - return (mon); + return mon; } - return (NULL); + return NULL; } monster* player::get_any_fearmonger() const @@ -86,7 +86,7 @@ monster* player::get_any_fearmonger() const if (!fearmongers.empty()) return (&menv[fearmongers[0]]); else - return (NULL); + return NULL; } // Removes a monster from the list of fearmongers if present. @@ -179,7 +179,7 @@ void player::_removed_fearmonger() bool player::_possible_fearmonger(const monster* mon) const { if (crawl_state.game_is_arena()) - return (false); + return false; return (mon->alive() && !silenced(pos()) && !silenced(mon->pos()) |