From 6d752d6fba7259fcb9dcca0566cbc1826d14d218 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 12 Jun 2008 03:03:37 +0000 Subject: Include secret doors in door-clustering (gates) when opening doors. In otherwords, if there's a line of secret doors with just one non-secret closed door among them and the non-secret door is opened, open up all the secret doors. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5744 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/terrain.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/terrain.h') diff --git a/crawl-ref/source/terrain.h b/crawl-ref/source/terrain.h index 5ab9eb8a18..b7cbf4313f 100644 --- a/crawl-ref/source/terrain.h +++ b/crawl-ref/source/terrain.h @@ -46,6 +46,9 @@ dungeon_feature_type altar_for_god( god_type god ); bool grid_is_branch_stairs( dungeon_feature_type grid ); void find_connected_identical(coord_def d, dungeon_feature_type ft, std::set& out); +void find_connected_range(coord_def d, dungeon_feature_type ft_min, + dungeon_feature_type ft_max, + std::set& out); void get_door_description(int door_size, const char** adjective, const char** noun); dungeon_feature_type grid_secret_door_appearance( int gx, int gy ); bool grid_destroys_items( dungeon_feature_type grid ); -- cgit v1.2.3-54-g00ecf