summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.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/spl-util.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/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index c84dbeb525..a11341c80c 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -486,7 +486,7 @@ int apply_area_visible(cell_func cf, int power,
int rv = 0;
for (radius_iterator ri(you.pos(), LOS_RADIUS); ri; ++ri)
- if (pass_through_trans || see_cell_no_trans(*ri))
+ if (pass_through_trans || you.see_cell_no_trans(*ri))
rv += cf(*ri, power, 0, agent);
return (rv);