summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-08 16:29:24 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-08 17:01:14 +0100
commit6bdaccfb8c194bfa0bb0b6769babc3710d570b45 (patch)
treedce34efa2202539e5a8ea704cdaa46b17fd1969c /crawl-ref/source/spells1.cc
parent19c3c95b8dba465b3efacf8eb96798af69c170fc (diff)
downloadcrawl-ref-6bdaccfb8c194bfa0bb0b6769babc3710d570b45.tar.gz
crawl-ref-6bdaccfb8c194bfa0bb0b6769babc3710d570b45.zip
Move see_cell_no_trans into player.
Also collect actor/player LOS code in actor-los.cc.
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 548e7491ad..4cb64dcd99 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -131,7 +131,7 @@ int blink(int pow, bool high_level_controlled_blink, bool wizard_blink)
mesclr();
mpr("You can't blink into the sea!");
}
- else if (see_cell_no_trans(beam.target))
+ else if (you.see_cell_no_trans(beam.target))
{
// Grid in los, no problem.
break;
@@ -455,7 +455,7 @@ void cast_chain_lightning(int pow, const actor *caster)
else if (!see_source && see_targ)
mpr("The lightning arc suddenly appears!");
- if (!see_cell_no_trans( target ))
+ if (!you.see_cell_no_trans( target ))
{
// It's no longer in the caster's LOS and influence.
pow = pow / 2 + 1;