diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-03-27 15:59:38 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-03-27 15:59:38 +0200 |
commit | b1116d438a905b1c3d19f3ca79022281989f77ba (patch) | |
tree | f5ed1d0b79781f8209c90b5fad083fa86ea848d7 /crawl-ref/source/place.cc | |
parent | 25daf8ecfabc000ee2c7b947454556d3ce6a319b (diff) | |
download | crawl-ref-b1116d438a905b1c3d19f3ca79022281989f77ba.tar.gz crawl-ref-b1116d438a905b1c3d19f3ca79022281989f77ba.zip |
Make the difficulty of branches independent of where they generated.
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 cd071c45a4..1a427e1f02 100644 --- a/crawl-ref/source/place.cc +++ b/crawl-ref/source/place.cc @@ -104,7 +104,7 @@ int absdungeon_depth(branch_type branch, int subdepth) --subdepth; while (branch != NUM_BRANCHES) { - subdepth += startdepth[branch]; + subdepth += (branches[branch].mindepth + branches[branch].maxdepth) / 2; branch = branches[branch].parent_branch; } return subdepth; |