diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-30 09:03:59 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-31 16:57:54 +0100 |
commit | 02d62bf9075ef5ceeafe1f28372feac70d11e7d5 (patch) | |
tree | 7ce0badecdc77549e37f2181486a4ff480b75c43 /crawl-ref/source/evoke.cc | |
parent | ec9c540f2946ec9f21d632cc22cc05e8f285fe0b (diff) | |
download | crawl-ref-02d62bf9075ef5ceeafe1f28372feac70d11e7d5.tar.gz crawl-ref-02d62bf9075ef5ceeafe1f28372feac70d11e7d5.zip |
Simplify actor_iterator and some of its users, rename to actor_near_iterator.
Diffstat (limited to 'crawl-ref/source/evoke.cc')
-rw-r--r-- | crawl-ref/source/evoke.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/evoke.cc b/crawl-ref/source/evoke.cc index a028ee116b..da51b2e2f8 100644 --- a/crawl-ref/source/evoke.cc +++ b/crawl-ref/source/evoke.cc @@ -1155,10 +1155,9 @@ void wind_blast(actor* agent, int pow, coord_def target) int radius = min(7, 5 + div_rand_round(pow, 60)); - for (actor_iterator ai(agent->get_los()); ai; ++ai) + for (actor_near_iterator ai(agent->pos(), LOS_SOLID); ai; ++ai) { if (ai->is_stationary() - || !cell_see_cell(agent->pos(), ai->pos(), LOS_SOLID) || ai->pos().distance_from(agent->pos()) > radius || ai->pos() == agent->pos() // so it's never aimed_at_feet || !target.origin() |