diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-22 06:31:32 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-22 06:31:32 +0000 |
commit | 4d0033a9b385e5c492bb125dccb7c06f2c918fa3 (patch) | |
tree | 5e4142224e27c5678df0a26fbc16e69ff89e7898 /crawl-ref/source/monstuff.cc | |
parent | e8cd0a7f5fad0f0a7d70c4d936c7b09cfae8fa3c (diff) | |
download | crawl-ref-4d0033a9b385e5c492bb125dccb7c06f2c918fa3.tar.gz crawl-ref-4d0033a9b385e5c492bb125dccb7c06f2c918fa3.zip |
Backport the applicable parts of r10364.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10367 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index df7a93a9d6..9cc1352311 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -3811,8 +3811,8 @@ static void _check_wander_target(monsters *mon, bool isPacified = false, if (!can_move) { - can_move = (mons_amphibious(mon)) - ? DNGN_DEEP_WATER : DNGN_SHALLOW_WATER; + can_move = (mons_amphibious(mon) ? DNGN_DEEP_WATER + : DNGN_SHALLOW_WATER); } if (mon->is_travelling()) @@ -8390,7 +8390,7 @@ static bool _monster_move(monsters *monster) if (monster->type == MONS_TRAPDOOR_SPIDER) { if (mons_is_submerged(monster)) - return (false); + return (false); // Trapdoor spiders hide if they can't see their foe. // (Note that friendly trapdoor spiders will thus hide even |