summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/mon-behv.cc2
-rw-r--r--crawl-ref/source/monstuff.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 270e006d9a..672a5d06cc 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -83,7 +83,7 @@ static void _mark_neighbours_target_unreachable(monsters *mon)
// Don't alert monsters out of sight (e.g. on the other side of
// a wall).
- if (!mon->mon_see_cell(*ri))
+ if (!mon->see_cell(*ri))
continue;
monsters* const m = monster_at(*ri);
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index c4983788f5..d77608c93d 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -2552,7 +2552,7 @@ static coord_def _random_monster_nearby_habitable_space(const monsters& mon,
continue;
}
- if (respect_los && !mon.mon_see_cell(target))
+ if (respect_los && !mon.see_cell(target))
continue;
// Survived everything, break out (with a good value of target.)