diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-01-08 03:55:23 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-01-08 03:55:23 +0100 |
commit | b89be0430b6359a069e13c86565dbf6985eefe5e (patch) | |
tree | cc2a18597cd3eeb03a763a8e947a4fdce791587f /crawl-ref/source/place.cc | |
parent | 54db41fcb86f47f65434684f650126d931be5ee3 (diff) | |
download | crawl-ref-b89be0430b6359a069e13c86565dbf6985eefe5e.tar.gz crawl-ref-b89be0430b6359a069e13c86565dbf6985eefe5e.zip |
Reduce special-casing of hell depth code somewhat.
Also, fix uninitialized starting depth.
This makes an actual difference as absdepth will be one more in proper hells,
but it's not used for anything but item properties on Hell:7.
Diffstat (limited to 'crawl-ref/source/place.cc')
-rw-r--r-- | crawl-ref/source/place.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/place.cc b/crawl-ref/source/place.cc index 6890ce3216..cd071c45a4 100644 --- a/crawl-ref/source/place.cc +++ b/crawl-ref/source/place.cc @@ -102,7 +102,7 @@ int absdungeon_depth(branch_type branch, int subdepth) return subdepth + 27 - (branch == BRANCH_VESTIBULE_OF_HELL); --subdepth; - while (branch != BRANCH_MAIN_DUNGEON && branch != NUM_BRANCHES) + while (branch != NUM_BRANCHES) { subdepth += startdepth[branch]; branch = branches[branch].parent_branch; |