diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-13 15:06:56 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-13 15:22:17 +0100 |
commit | d21b754210905c4bf50e0c346d820b3d8b1af01c (patch) | |
tree | 29d6121a80cb4792bf3bbb530e4ed728c824cda3 /crawl-ref/source/actor-los.cc | |
parent | 310d0430888db20093a862e7921511076a486c6b (diff) | |
download | crawl-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.cc | 5 |
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); |