summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/flood_find.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-01-04 03:29:35 -0500
committerNeil Moore <neil@s-z.org>2012-01-04 06:18:53 -0500
commitb8177dac2f678e0bec2ba465f7888e35a2f20bee (patch)
tree1e450ca5d978960c28ecf7416ef0f8461ad864f5 /crawl-ref/source/flood_find.h
parentee18ef1544d413131e1de559f26f2ede77a8b497 (diff)
downloadcrawl-ref-b8177dac2f678e0bec2ba465f7888e35a2f20bee.tar.gz
crawl-ref-b8177dac2f678e0bec2ba465f7888e35a2f20bee.zip
Ignore player swimming etc for connectivity checks.
The dungeon should not arrange itself to suit the player's abilities. Besides this general philosophical objection, there are a few actual bugs caused by this behaviour: * Entering a vaults level in bat form (which cannot open doors) causes a level generation failure. * travel_avoid_terrain = shallow_water can cause vaults to be vetoed. * Permanent flight or levitation could allow item shifting to push an item (even a critical item) into lava or deep water while trying to save it. Fixes #4722.
Diffstat (limited to 'crawl-ref/source/flood_find.h')
-rw-r--r--crawl-ref/source/flood_find.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/flood_find.h b/crawl-ref/source/flood_find.h
index ad67487b73..d11a1459e9 100644
--- a/crawl-ref/source/flood_find.h
+++ b/crawl-ref/source/flood_find.h
@@ -64,7 +64,7 @@ flood_find<fgrd, bound_check>::find_first_from(
{
set_floodseed(c);
vaults = &vlts;
- return pathfind(RMODE_EXPLORE);
+ return pathfind(RMODE_CONNECTIVITY);
}
template <typename fgrd, typename bound_check>