From 1fdd4abbce290f4d656bf29ce65d70ab5025871d Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 22 Oct 2009 19:13:56 +0200 Subject: 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. --- crawl-ref/source/spells2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spells2.cc') diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 66a8422b87..c3e553e950 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -197,7 +197,7 @@ int detect_creatures(int pow, bool telepathic) if (monsters *mon = monster_at(*ri)) { // If you can see the monster, don't "detect" it elsewhere. - if (!mons_near(mon) || !player_monster_visible(mon)) + if (!mons_near(mon) || !mon->visible_to(&you)) { creatures_found++; _mark_detected_creature(*ri, mon, fuzz_chance, fuzz_radius); -- cgit v1.2.3-54-g00ecf