diff options
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(); |