diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 17:35:57 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 19:46:19 +0100 |
commit | eb9ddc3ba38e5a76b9efb74153c19d84b6d44e74 (patch) | |
tree | 2262bbbe9e0f49eef89aa28f740151e35494259b /crawl-ref/source | |
parent | 3ba101e847eae30dd5abf9661b252e6e5ebf87ff (diff) | |
download | crawl-ref-eb9ddc3ba38e5a76b9efb74153c19d84b6d44e74.tar.gz crawl-ref-eb9ddc3ba38e5a76b9efb74153c19d84b6d44e74.zip |
Get rid of a few uses of mon_see_cell.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/mon-behv.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/monstuff.cc | 2 |
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.) |