summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/branch.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-05-02 13:04:14 -0400
committerNeil Moore <neil@s-z.org>2012-05-02 22:37:29 -0400
commitd824ca89c52e0a5fcd2b9b7c41e4fea8da163710 (patch)
tree6c61d1f477a1e30cb47c8dd013872894f553ebe6 /crawl-ref/source/branch.h
parent8ce0e0f77d0a67c6388dcd76203ab8c8ab676a59 (diff)
downloadcrawl-ref-d824ca89c52e0a5fcd2b9b7c41e4fea8da163710.tar.gz
crawl-ref-d824ca89c52e0a5fcd2b9b7c41e4fea8da163710.zip
Set ZotDef in Zot.
Allow games to use different root branches. Currently this is Zot for zotdef, and Dungeon for everything else. If there are reachable branches that precede the root branch in branches[], the ^O screen will incorrectly print them first. This is not currently the case for any game type, and isn't likely to be the case in the future, because branches[] is for the most part topologically sorted.
Diffstat (limited to 'crawl-ref/source/branch.h')
-rw-r--r--crawl-ref/source/branch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/branch.h b/crawl-ref/source/branch.h
index 95d3ae5b4f..6a369182ba 100644
--- a/crawl-ref/source/branch.h
+++ b/crawl-ref/source/branch.h
@@ -48,6 +48,7 @@ struct Branch
extern const Branch branches[NUM_BRANCHES];
extern FixedVector<int, NUM_BRANCHES> startdepth, brdepth;
+extern branch_type root_branch;
const Branch& your_branch();