summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/flood_find.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-10-02 19:27:39 -0400
committerNeil Moore <neil@s-z.org>2013-10-02 19:27:39 -0400
commitc4feb4ae945771017307163f9fee7f1dd3064c22 (patch)
tree12d8b55da915addfad84854e9d9ccc40223d8628 /crawl-ref/source/flood_find.h
parent3b2d4cbffc3f65e033d750eda4d4a06e0fa9ed79 (diff)
downloadcrawl-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.h6
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>