diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-10-15 13:52:24 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-11-04 18:49:49 +0100 |
commit | c346361417241d0e4d7531ed65a1ca5b4f497139 (patch) | |
tree | 8c76c3b32dac858b2a36df7d032ff50e49545384 /crawl-ref/source/ng-init.cc | |
parent | f4a9aed257bbdd264fb1ef43e7b29b3cc599cd65 (diff) | |
download | crawl-ref-c346361417241d0e4d7531ed65a1ca5b4f497139.tar.gz crawl-ref-c346361417241d0e4d7531ed65a1ca5b4f497139.zip |
Get rid of level_type, unify BRANCH_*, LEVEL_* and portal vaults.
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 1a9103f67a..18ff714cb0 100644 --- a/crawl-ref/source/ng-init.cc +++ b/crawl-ref/source/ng-init.cc @@ -62,7 +62,10 @@ void initialise_branch_depths() for (int branch = BRANCH_ECUMENICAL_TEMPLE; branch < NUM_BRANCHES; ++branch) { Branch *b = &branches[branch]; - if (crawl_state.game_is_sprint() || branch_is_unfinished(b->id)) + if (!is_connected_branch(b->id)) + // hopefully unused, but let's have a reasonable estimate just in case + b->startdepth = (b->mindepth + b->maxdepth) / 2; + else if (crawl_state.game_is_sprint() || branch_is_unfinished(b->id)) b->startdepth = -1; else if (branch <= BRANCH_VESTIBULE_OF_HELL || branch > BRANCH_LAST_HELL) b->startdepth = random_range(b->mindepth, b->maxdepth); |