summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-06 23:39:51 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-06 23:39:51 +0000
commitdd25b1fc8889a8ecf1970ad4d0accba4850b49fe (patch)
tree0bea49e0f492a0219b4467a1f62cb6d3b5c00768 /crawl-ref/source/dungeon.h
parent590e197da874d89defd085e799f8171c2880e8e3 (diff)
downloadcrawl-ref-dd25b1fc8889a8ecf1970ad4d0accba4850b49fe.tar.gz
crawl-ref-dd25b1fc8889a8ecf1970ad4d0accba4850b49fe.zip
Allow non-rectangular minivaults and branch entry vaults (use space padding).
They're still rectangular for collision detection with other vaults; that'll need more effort to fix. Space padding can also be used for regular vaults, but it'll be ignored at the moment (but soon...! :-)). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1778 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.h')
-rw-r--r--crawl-ref/source/dungeon.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.h b/crawl-ref/source/dungeon.h
index 34fd78690c..9182de4d5d 100644
--- a/crawl-ref/source/dungeon.h
+++ b/crawl-ref/source/dungeon.h
@@ -266,6 +266,18 @@ bool flood_find<fgrd, bound_check>::path_flood(
}
const dungeon_feature_type grid = fgrid(dc);
+
+ if (grid == NUM_FEATURES)
+ {
+ if (want_exit)
+ {
+ greedy_dist = 100;
+ greedy_place = coord_def(-1, -1);
+ return (true);
+ }
+ return (false);
+ }
+
if (needed_features[ grid ])
{
unexplored_place = dc;