diff options
author | blackcustard <peterwicksstringfield@gmail.com> | 2013-11-18 12:23:35 -0600 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-11-22 00:16:11 -0500 |
commit | af334cebb3b50f27f66a8f6517aa934eb7713d4f (patch) | |
tree | 9cd0f06d825ce9fa92989247302c76fc2607538e /crawl-ref/source/exclude.cc | |
parent | b7b8715484d8b8efb3339c99b27cf4bbdb430c79 (diff) | |
download | crawl-ref-af334cebb3b50f27f66a8f6517aa934eb7713d4f.tar.gz crawl-ref-af334cebb3b50f27f66a8f6517aa934eb7713d4f.zip |
Remove "convenience" function connected_doors.
At one time, before runed doors were added, connected_doors was almost
nice shorthand for find_connected_identical(position, DNGN_CLOSED_DOOR,
all_door). Now its just a pointless and inconsistently applied layer of
indirection.
Also refactor find_connected_identical a bit.
[Also updated the remaining f_c_i calls to the new parameter list,
and made the _f_c_i helper static. -neil]
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r-- | crawl-ref/source/exclude.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc index 51169755b3..6385d4a626 100644 --- a/crawl-ref/source/exclude.cc +++ b/crawl-ref/source/exclude.cc @@ -459,7 +459,7 @@ void clear_excludes() static void _exclude_gate(const coord_def &p, bool del = false) { set<coord_def> all_doors; - find_connected_identical(p, grd(p), all_doors); + find_connected_identical(p, all_doors); for (set<coord_def>::const_iterator dc = all_doors.begin(); dc != all_doors.end(); ++dc) { |