summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-22 19:13:56 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-22 22:37:09 +0200
commit1fdd4abbce290f4d656bf29ce65d70ab5025871d (patch)
treec258b3f9f522191f19f3c45315969905be4d9aa8 /crawl-ref/source/files.cc
parent8d4d79655dd503417920299808993cef658bdde0 (diff)
downloadcrawl-ref-1fdd4abbce290f4d656bf29ce65d70ab5025871d.tar.gz
crawl-ref-1fdd4abbce290f4d656bf29ce65d70ab5025871d.zip
Get rid of player_monster_visible.
The special casing for drowning monsters appears to have been obsoloted by checking ENCH_SUBMERGED instead of calling mons_is_submerged.
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index d92fa90c06..6e25f41248 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -1065,7 +1065,7 @@ static void _grab_followers()
if (fmenv->type == MONS_PLAYER_GHOST
&& fmenv->hit_points < fmenv->max_hit_points / 2)
{
- if (player_monster_visible(fmenv))
+ if (fmenv->visible_to(&you))
mpr("The ghost fades into the shadows.");
monster_teleport(fmenv, true);
}