summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-11 21:37:04 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-11 21:37:04 +0000
commitf8ef48576784cd5d02584f7afd69a6299e6e32d5 (patch)
treee2a2314a907b229edf2ac32f497131b645ab4dc3
parentad642d8a7af0a93e0911fb348f5e23895b0c427f (diff)
downloadcrawl-ref-f8ef48576784cd5d02584f7afd69a6299e6e32d5.tar.gz
crawl-ref-f8ef48576784cd5d02584f7afd69a6299e6e32d5.zip
Fixed off-by-one error in Vestibule depth calculation.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1579 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/misc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 3faf5a1600..c3efdca2a4 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -2041,7 +2041,7 @@ std::string prep_branch_level_name()
int absdungeon_depth(branch_type branch, int subdepth)
{
if (branch >= BRANCH_VESTIBULE_OF_HELL && branch <= BRANCH_THE_PIT)
- return subdepth + 27;
+ return subdepth + 27 - (branch == BRANCH_VESTIBULE_OF_HELL);
else
{
--subdepth;