summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-25 16:23:15 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-10-25 16:27:21 +0100
commit21060a38ec5f533d3cfc5614418c7ff8fecfabb1 (patch)
treea3041a5fa363234c9a970edcb60a4a59f15b2f4e /crawl-ref/source/religion.cc
parent07e6eec5db758443ed0c9e8b05365b0e3594a13b (diff)
downloadcrawl-ref-21060a38ec5f533d3cfc5614418c7ff8fecfabb1.tar.gz
crawl-ref-21060a38ec5f533d3cfc5614418c7ff8fecfabb1.zip
Replace what was originally mons_player_visible by you.visible_to.
I had accidentally replaced these by mon->can_see_invisible(), causing for instance stealth checks to hardly ever fail.
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 456ea0c176..3e788b21fe 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 (monster->can_see_invisible()
+ if (you.visible_to(monster)
&& !mons_is_sleeping(monster)
&& !mons_is_confused(monster)
&& !mons_cannot_act(monster))
@@ -7463,7 +7463,7 @@ int get_tension(god_type god, bool count_travelling)
if (att != ATT_FRIENDLY)
{
- if (!mons->can_see_invisible())
+ if (!you.visible_to(mons))
exper /= 2;
if (!mons->visible_to(&you))
exper *= 2;