diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-13 21:59:47 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-13 22:51:35 +0100 |
commit | d958695281c7c79be672abda7cdaf673c27514e6 (patch) | |
tree | e7d88894f39703160b6b3bfa3c5599d1dd3f9a76 /crawl-ref/source/spells4.cc | |
parent | 2021591fae6918624a49d21849ebd2ca35ff9ff2 (diff) | |
download | crawl-ref-d958695281c7c79be672abda7cdaf673c27514e6.tar.gz crawl-ref-d958695281c7c79be672abda7cdaf673c27514e6.zip |
Convert a bunch of coordinate loops to new radius_iterator.
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index bbd80c8cab..6970ceb668 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -376,14 +376,12 @@ void cast_detect_secret_doors(int pow) { int found = 0; - for ( radius_iterator ri(you.pos(), 8); ri; ++ri ) - { + for (radius_iterator ri(&you.get_los()); ri; ++ri ) if (grd(*ri) == DNGN_SECRET_DOOR && random2(pow) > random2(15)) { reveal_secret_door(*ri); found++; } - } if (found) redraw_screen(); |