summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-30 14:56:17 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2009-12-30 15:02:14 +0100
commit70f32d224f080d1a225635b0a2d223d4ec3a4534 (patch)
tree54b543957f11654397a03294b95df13ad63d088d /crawl-ref/source/monster.cc
parent49d56513e91c390d28765964538a57d8d97acbe5 (diff)
downloadcrawl-ref-70f32d224f080d1a225635b0a2d223d4ec3a4534.tar.gz
crawl-ref-70f32d224f080d1a225635b0a2d223d4ec3a4534.zip
Minor application of the coding conventions.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index 1e88b10f33..e79967096c 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -182,15 +182,15 @@ static bool _player_near_water()
for (adjacent_iterator ai(you.pos()); ai; ++ai)
if (feat_is_water(grd(*ai)))
return (true);
+
return (false);
}
bool monsters::wants_submerge() const
{
// Krakens never retreat when food (the player) is in range.
- if (mons_base_type(this) == MONS_KRAKEN)
- if (_player_near_water())
- return (false);
+ if (mons_base_type(this) == MONS_KRAKEN && _player_near_water())
+ return (false);
// If we're in distress, we usually want to submerge.
if (env.cgrid(pos()) != EMPTY_CLOUD