From 346761406bb570a727aea4d844e875a1e7cccf8b Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 22 Oct 2009 18:18:16 +0200 Subject: Remove mons_see_invis in favour of monsters::can_see_invisible. --- crawl-ref/source/directn.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index e4181e26e6..9c4a05d51d 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -3148,14 +3148,14 @@ static std::string _get_monster_desc(const monsters *mon) // invisible creatures. if (mons_behaviour_perceptible(mon) && !mons_is_sleeping(mon) && !mons_is_confused(mon) - && (mons_see_invis(mon) || mons_sense_invis(mon))) + && (mon->can_see_invisible() || mons_sense_invis(mon))) { const actor* foe = mon->get_foe(); if (foe && foe->invisible() && !mons_is_fleeing(mon)) { if (!you.can_see(foe)) text += pronoun + " is looking at something unseen.\n"; - else if (mons_see_invis(mon)) + else if (mon->can_see_invisible()) { text += pronoun + " is watching " + foe->name(DESC_NOCAP_THE) -- cgit v1.2.3-54-g00ecf