summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-overview.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-06-21 18:22:22 -0400
committerNeil Moore <neil@s-z.org>2013-06-21 18:40:02 -0400
commit5758f6bea15a84073afe418debca1c6402228419 (patch)
tree2aa43866b26c85a4bd40dadc5b40c16849f802be /crawl-ref/source/dgn-overview.cc
parenta9216541b52a2c30dc5b7fcb2b57f12af9a56174 (diff)
downloadcrawl-ref-5758f6bea15a84073afe418debca1c6402228419.tar.gz
crawl-ref-5758f6bea15a84073afe418debca1c6402228419.zip
No parent for the root branch.
Among other things, this prevents G ctrl-p in zotdef from showing "Dungeon".
Diffstat (limited to 'crawl-ref/source/dgn-overview.cc')
-rw-r--r--crawl-ref/source/dgn-overview.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/dgn-overview.cc b/crawl-ref/source/dgn-overview.cc
index 6ec7c5e18c..d302299d99 100644
--- a/crawl-ref/source/dgn-overview.cc
+++ b/crawl-ref/source/dgn-overview.cc
@@ -371,6 +371,9 @@ static string _get_unseen_branches()
if (stair_level.find(branch) == stair_level.end())
{
const branch_type parent = parent_branch((branch_type)i);
+ // Root branches.
+ if (parent == NUM_BRANCHES)
+ continue;
level_id lid(parent, 0);
lid = find_deepest_explored(lid);
if (lid.depth >= branches[branch].mindepth)