summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-22 18:30:15 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-22 22:37:08 +0200
commitfd1958001336bef983dfdfc951735c6e628d3ab7 (patch)
treef607ef458f3c05cd5eeae2cd39ab5c5a5f148037 /crawl-ref/source/religion.cc
parent346761406bb570a727aea4d844e875a1e7cccf8b (diff)
downloadcrawl-ref-fd1958001336bef983dfdfc951735c6e628d3ab7.tar.gz
crawl-ref-fd1958001336bef983dfdfc951735c6e628d3ab7.zip
Move mons_player_visible into player::visible_to.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index cffbd3de6c..96533db1b0 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -5654,7 +5654,7 @@ static bool _beogh_followers_abandon_you()
{
num_followers++;
- if (mons_player_visible(monster)
+ if (monster->can_see_invisible()
&& !mons_is_sleeping(monster)
&& !mons_is_confused(monster)
&& !mons_cannot_act(monster))
@@ -7457,7 +7457,7 @@ int get_tension(god_type god, bool count_travelling)
if (att != ATT_FRIENDLY)
{
- if (!mons_player_visible(mons))
+ if (!mons->can_see_invisible())
exper /= 2;
if (!player_monster_visible(mons))
exper *= 2;