summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/behold.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-07-05 12:14:09 +0200
commitc41419c4f47bbf0737d3fedf58128c835d2c4e3b (patch)
tree764ae18c107df39fd90af718922036bd245561ca /crawl-ref/source/behold.cc
parentb80adef8882143cad34f3c8bcc9a8ccbd4440223 (diff)
downloadcrawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.tar.gz
crawl-ref-c41419c4f47bbf0737d3fedf58128c835d2c4e3b.zip
Drop parentheses around scalar values in "return".
Diffstat (limited to 'crawl-ref/source/behold.cc')
-rw-r--r--crawl-ref/source/behold.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/behold.cc b/crawl-ref/source/behold.cc
index 88fdc843fa..5420d3bc73 100644
--- a/crawl-ref/source/behold.cc
+++ b/crawl-ref/source/behold.cc
@@ -79,8 +79,8 @@ bool player::beheld_by(const monster* mon) const
{
for (unsigned int i = 0; i < beholders.size(); i++)
if (beholders[i] == mon->mindex())
- return (true);
- return (false);
+ return true;
+ return false;
}
// Checks whether a beholder keeps you from moving to
@@ -94,9 +94,9 @@ monster* player::get_beholder(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_beholder() const
@@ -104,7 +104,7 @@ monster* player::get_any_beholder() const
if (!beholders.empty())
return (&menv[beholders[0]]);
else
- return (NULL);
+ return NULL;
}
// Removes a monster from the list of beholders if present.
@@ -256,7 +256,7 @@ void player::_removed_beholder()
bool player::possible_beholder(const monster* mon) const
{
if (crawl_state.game_is_arena())
- return (false);
+ return false;
return (mon->alive() && !mon->submerged()
&& see_cell_no_trans(mon->pos()) && mon->see_cell_no_trans(pos())