summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-init.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-05-02 11:46:58 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-05-02 11:46:58 +0200
commit4f6fd54bcfa43bbc5bfcd6161cd9f88e04f28ded (patch)
treef3f82caa624b49128325ac4cbfa7f2dcf9a8ea1d /crawl-ref/source/ng-init.cc
parent7d9430211110ae933509c8cfc8d325e0b964c0b1 (diff)
downloadcrawl-ref-4f6fd54bcfa43bbc5bfcd6161cd9f88e04f28ded.tar.gz
crawl-ref-4f6fd54bcfa43bbc5bfcd6161cd9f88e04f28ded.zip
Properly set the dungeon depth for ZotDef.
Diffstat (limited to 'crawl-ref/source/ng-init.cc')
-rw-r--r--crawl-ref/source/ng-init.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/ng-init.cc b/crawl-ref/source/ng-init.cc
index 25a8af48d2..c4f485d87c 100644
--- a/crawl-ref/source/ng-init.cc
+++ b/crawl-ref/source/ng-init.cc
@@ -55,6 +55,14 @@ void initialise_branches_for_game_type()
return;
}
+ if (crawl_state.game_is_zotdef())
+ {
+ brdepth.init(-1);
+ brdepth[BRANCH_MAIN_DUNGEON] = 1;
+ brdepth[BRANCH_BAZAAR] = 1;
+ return;
+ }
+
for (int i = 0; i < NUM_BRANCHES; i++)
brdepth[i] = branches[i].numlevels;