summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-22 18:14:00 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-22 22:37:07 +0200
commit78f7b9d8e5921ef3e1f64d01c802436a654c177a (patch)
tree3d58adf6061925cc6f729a819f4a2c64bccb34d9 /crawl-ref/source/spells4.cc
parented4a22bce4db2328e945840901176b49d4b573e7 (diff)
downloadcrawl-ref-78f7b9d8e5921ef3e1f64d01c802436a654c177a.tar.gz
crawl-ref-78f7b9d8e5921ef3e1f64d01c802436a654c177a.zip
Move player_see_invis into player class.
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 42e99068d9..0b5a5169e4 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -346,7 +346,7 @@ void cast_phase_shift(int pow)
void cast_see_invisible(int pow)
{
- if (player_see_invis())
+ if (you.can_see_invisible())
mpr("Nothing seems to happen.");
else
{
@@ -1178,7 +1178,7 @@ bool cast_evaporate(int pow, bolt& beem, int pot_idx)
// Fire tracer. FIXME: use player_tracer() here!
beem.source = you.pos();
- beem.can_see_invis = player_see_invis();
+ beem.can_see_invis = you.can_see_invisible();
beem.smart_monster = true;
beem.attitude = ATT_FRIENDLY;
beem.beam_cancelled = false;