From 70f32d224f080d1a225635b0a2d223d4ec3a4534 Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Wed, 30 Dec 2009 14:56:17 +0100 Subject: Minor application of the coding conventions. --- crawl-ref/source/monster.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/monster.cc') 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 -- cgit v1.2.3-54-g00ecf