summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/actor-los.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-13 15:06:56 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-13 15:22:17 +0100
commitd21b754210905c4bf50e0c346d820b3d8b1af01c (patch)
tree29d6121a80cb4792bf3bbb530e4ed728c824cda3 /crawl-ref/source/actor-los.cc
parent310d0430888db20093a862e7921511076a486c6b (diff)
downloadcrawl-ref-d21b754210905c4bf50e0c346d820b3d8b1af01c.tar.gz
crawl-ref-d21b754210905c4bf50e0c346d820b3d8b1af01c.zip
Move trans_wall_blocking into player.
Diffstat (limited to 'crawl-ref/source/actor-los.cc')
-rw-r--r--crawl-ref/source/actor-los.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/actor-los.cc b/crawl-ref/source/actor-los.cc
index bc7f1c4868..25361a7177 100644
--- a/crawl-ref/source/actor-los.cc
+++ b/crawl-ref/source/actor-los.cc
@@ -32,6 +32,11 @@ bool player::see_cell_no_trans(const coord_def &p) const
return (los_no_trans.see_cell(p));
}
+bool player::trans_wall_blocking(const coord_def &p) const
+{
+ return (see_cell(p) && !see_cell_no_trans(p));
+}
+
const los_def& actor::get_los() const
{
return (los);