summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-08 17:35:57 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-08 19:46:19 +0100
commiteb9ddc3ba38e5a76b9efb74153c19d84b6d44e74 (patch)
tree2262bbbe9e0f49eef89aa28f740151e35494259b
parent3ba101e847eae30dd5abf9661b252e6e5ebf87ff (diff)
downloadcrawl-ref-eb9ddc3ba38e5a76b9efb74153c19d84b6d44e74.tar.gz
crawl-ref-eb9ddc3ba38e5a76b9efb74153c19d84b6d44e74.zip
Get rid of a few uses of mon_see_cell.
-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.)