summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-03 13:01:25 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-03 13:01:25 +0100
commit7047b33b2768a838b2cea28f8738936c08f1d406 (patch)
tree27a0d4712509390031464a0d05d8eacdd53d2096 /crawl-ref/source/abyss.cc
parente06bfaaf8641758a91ec5978d28a55b4697be788 (diff)
downloadcrawl-ref-7047b33b2768a838b2cea28f8738936c08f1d406.tar.gz
crawl-ref-7047b33b2768a838b2cea28f8738936c08f1d406.zip
Shorten branch enums.
Seriously, even preparing this commit gave me a pain in the triangle between the thumb and index finger's bases and the wrist.
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index e30942695e..3b1d07a1e2 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -970,7 +970,7 @@ static bool _in_wastes(const coord_def &p)
static level_id _get_random_level(bool existing, bool connected)
{
vector<level_id> levels;
- for (int i = BRANCH_MAIN_DUNGEON; i < NUM_BRANCHES; ++i)
+ for (int i = BRANCH_DUNGEON; i < NUM_BRANCHES; ++i)
{
if (i == BRANCH_ABYSS
|| (existing && i == BRANCH_SHOALS)
@@ -988,7 +988,7 @@ static level_id _get_random_level(bool existing, bool connected)
if (levels.empty())
{
// Let this fail later on.
- return level_id(static_cast<branch_type>(BRANCH_MAIN_DUNGEON), 1);
+ return level_id(static_cast<branch_type>(BRANCH_DUNGEON), 1);
}
return levels[hash_rand(levels.size(), abyssal_state.seed)];