diff options
author | Neil Moore <neil@s-z.org> | 2012-05-02 13:04:14 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-05-02 22:37:29 -0400 |
commit | d824ca89c52e0a5fcd2b9b7c41e4fea8da163710 (patch) | |
tree | 6c61d1f477a1e30cb47c8dd013872894f553ebe6 /crawl-ref/source/ng-init.cc | |
parent | 8ce0e0f77d0a67c6388dcd76203ab8c8ab676a59 (diff) | |
download | crawl-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/ng-init.cc')
-rw-r--r-- | crawl-ref/source/ng-init.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/ng-init.cc b/crawl-ref/source/ng-init.cc index ba87b9ef5a..42b49bf44f 100644 --- a/crawl-ref/source/ng-init.cc +++ b/crawl-ref/source/ng-init.cc @@ -48,6 +48,8 @@ static uint8_t _random_potion_description() // Determine starting depths of branches. void initialise_branch_depths() { + root_branch = BRANCH_MAIN_DUNGEON; + for (int branch = BRANCH_ECUMENICAL_TEMPLE; branch < NUM_BRANCHES; ++branch) { const Branch *b = &branches[branch]; @@ -89,8 +91,9 @@ void initialise_branch_depths() if (crawl_state.game_is_zotdef()) { + root_branch = BRANCH_HALL_OF_ZOT; brdepth.init(-1); - brdepth[BRANCH_MAIN_DUNGEON] = 1; + brdepth[BRANCH_HALL_OF_ZOT] = 1; brdepth[BRANCH_BAZAAR] = 1; return; } |