From dd25b1fc8889a8ecf1970ad4d0accba4850b49fe Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 6 Jul 2007 23:39:51 +0000 Subject: 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 --- crawl-ref/source/dungeon.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/dungeon.h') 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::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; -- cgit v1.2.3-54-g00ecf