diff options
author | Neil Moore <neil@s-z.org> | 2013-10-02 19:27:39 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-10-02 19:27:39 -0400 |
commit | c4feb4ae945771017307163f9fee7f1dd3064c22 (patch) | |
tree | 12d8b55da915addfad84854e9d9ccc40223d8628 /crawl-ref/source/flood_find.h | |
parent | 3b2d4cbffc3f65e033d750eda4d4a06e0fa9ed79 (diff) | |
download | crawl-ref-c4feb4ae945771017307163f9fee7f1dd3064c22.tar.gz crawl-ref-c4feb4ae945771017307163f9fee7f1dd3064c22.zip |
Use RMODE_CONNECTIVITY for flood find.
We started using RMODE_CONNECTIVITY in find_first_from in
0.10-a0-3058-gb8177da. Extend that to also use it in the other methods.
Diffstat (limited to 'crawl-ref/source/flood_find.h')
-rw-r--r-- | crawl-ref/source/flood_find.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/flood_find.h b/crawl-ref/source/flood_find.h index d128afbcd5..63ad610160 100644 --- a/crawl-ref/source/flood_find.h +++ b/crawl-ref/source/flood_find.h @@ -80,7 +80,7 @@ bool flood_find<fgrd, bound_check>::points_connected_from( if (needed_points.empty()) return true; set_floodseed(sp); - pathfind(RMODE_EXPLORE); + pathfind(RMODE_CONNECTIVITY); return needed_points.empty(); } @@ -92,7 +92,7 @@ bool flood_find<fgrd, bound_check>::any_point_connected_from( return true; set_floodseed(sp); const size_t sz = needed_points.size(); - pathfind(RMODE_EXPLORE); + pathfind(RMODE_CONNECTIVITY); return (needed_points.size() < sz); } @@ -102,7 +102,7 @@ bool flood_find<fgrd, bound_check>::has_exit_from( { want_exit = true; set_floodseed(sp); - return (pathfind(RMODE_EXPLORE) == coord_def(-1, -1)); + return (pathfind(RMODE_CONNECTIVITY) == coord_def(-1, -1)); } template <typename fgrd, typename bound_check> |