summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/coordit.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/coordit.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/coordit.cc')
-rw-r--r--crawl-ref/source/coordit.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/coordit.cc b/crawl-ref/source/coordit.cc
index 10677e2212..c0c79414c0 100644
--- a/crawl-ref/source/coordit.cc
+++ b/crawl-ref/source/coordit.cc
@@ -70,10 +70,10 @@ rectangle_iterator rectangle_iterator::operator++( int dummy )
radius_iterator::radius_iterator(const coord_def& _center, int _radius,
bool _roguelike_metric, bool _require_los,
bool _exclude_center,
- const env_show_grid* _losgrid)
+ const los_def* _los)
: center(_center), radius(_radius), roguelike_metric(_roguelike_metric),
require_los(_require_los), exclude_center(_exclude_center),
- losgrid(_losgrid), iter_done(false)
+ los(_los), iter_done(false)
{
reset();
}
@@ -129,9 +129,9 @@ bool radius_iterator::on_valid_square() const
return (false);
if (require_los)
{
- if (!losgrid && !you.see_cell(location))
+ if (!los && !you.see_cell(location))
return (false);
- if (losgrid && !see_cell(*losgrid, center, location))
+ if (los && !los->see_cell(location))
return (false);
}
if (exclude_center && location == center)