diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-04 12:29:52 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-05 05:14:16 +0100 |
commit | 96d8e707a34b0d25bba625c72238b223dfcf4a80 (patch) | |
tree | 2734ac7034f61411971dec606bd288efca4f2414 /crawl-ref/source/travel.cc | |
parent | 6034a6cd95a6746f5a819da730dd838dd32d9521 (diff) | |
download | crawl-ref-96d8e707a34b0d25bba625c72238b223dfcf4a80.tar.gz crawl-ref-96d8e707a34b0d25bba625c72238b223dfcf4a80.zip |
Remove radius_iterator(los_base).
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r-- | crawl-ref/source/travel.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index 0fa2a58f2a..122bca3756 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -653,9 +653,7 @@ void stop_running() static bool _is_valid_explore_target(const coord_def& where) { // If a square in LOS is unmapped, it's valid. - los_def los(where); - los.update(); - for (radius_iterator ri(&los, true); ri; ++ri) + for (radius_iterator ri(where, LOS_DEFAULT, true); ri; ++ri) if (!env.map_knowledge(*ri).seen()) return true; @@ -1578,9 +1576,7 @@ bool travel_pathfind::path_flood(const coord_def &c, const coord_def &dc) { // This point is unexplored but unreachable. Let's find a // place from where we can see it. - los_def los(dc); - los.update(); - for (radius_iterator ri(&los, true); ri; ++ri) + for (radius_iterator ri(dc, LOS_DEFAULT, true); ri; ++ri) { const int dist = point_distance[ri->x][ri->y]; if (dist > 0 |