summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-17 00:04:11 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-17 01:41:21 +0100
commit72888af70a4b1d8e77d4a62e5252f17dd3b5a8d6 (patch)
treee7172af96e8f415586fc4e16fe40791b378837d7 /crawl-ref/source/abyss.cc
parent7f6b743bca1abc789eee076ddcd08ae847844416 (diff)
downloadcrawl-ref-72888af70a4b1d8e77d4a62e5252f17dd3b5a8d6.tar.gz
crawl-ref-72888af70a4b1d8e77d4a62e5252f17dd3b5a8d6.zip
Generalize the Dwarf check for any future unfinished branch.
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 7a12141a4b..19d8219454 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -976,7 +976,7 @@ static level_id _get_random_level(bool existing, bool connected)
for (int i = BRANCH_DUNGEON; i < NUM_BRANCHES; ++i)
{
if (i == BRANCH_ABYSS
- || i == BRANCH_DWARF
+ || branch_is_unfinished((branch_type)i)
|| (existing && i == BRANCH_SHOALS)
|| (connected && !is_connected_branch(static_cast<branch_type>(i))))
{