summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-13 21:59:47 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-13 22:51:35 +0100
commitd958695281c7c79be672abda7cdaf673c27514e6 (patch)
treee7d88894f39703160b6b3bfa3c5599d1dd3f9a76 /crawl-ref/source/spl-cast.cc
parent2021591fae6918624a49d21849ebd2ca35ff9ff2 (diff)
downloadcrawl-ref-d958695281c7c79be672abda7cdaf673c27514e6.tar.gz
crawl-ref-d958695281c7c79be672abda7cdaf673c27514e6.zip
Convert a bunch of coordinate loops to new radius_iterator.
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 8d96fb7f82..366cfe4882 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -637,15 +637,8 @@ void inspect_spells()
static int _get_dist_to_nearest_monster()
{
int minRange = LOS_RADIUS + 1;
- for (radius_iterator ri(you.pos(), LOS_RADIUS, true, false, true); ri; ++ri)
+ for (radius_iterator ri(&you.get_los_no_trans(), true); ri; ++ri)
{
- if (!in_bounds(*ri))
- continue;
-
- // Can we see (and reach) the grid?
- if (!you.see_cell_no_trans(*ri))
- continue;
-
const monsters *mon = monster_at(*ri);
if (mon == NULL)
continue;