summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.h
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-06-05 09:58:41 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-06-05 09:58:41 +0530
commit28f2a4d12e6ade4fad4e39327cf85952fd07e035 (patch)
tree57e407397423e268b1f33da9e830659977e1680a /crawl-ref/source/abyss.h
parent7e976dc38c543aa4dbb8200921458acc66fe56ff (diff)
downloadcrawl-ref-28f2a4d12e6ade4fad4e39327cf85952fd07e035.tar.gz
crawl-ref-28f2a4d12e6ade4fad4e39327cf85952fd07e035.zip
Set abyss center to the actual center of the level, peg the abyss shift radius to the LOS radius.
Diffstat (limited to 'crawl-ref/source/abyss.h')
-rw-r--r--crawl-ref/source/abyss.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/abyss.h b/crawl-ref/source/abyss.h
index bc1d2bad78..c93822db01 100644
--- a/crawl-ref/source/abyss.h
+++ b/crawl-ref/source/abyss.h
@@ -8,7 +8,10 @@
#ifndef ABYSS_H
#define ABYSS_H
-const int ABYSS_AREA_SHIFT_RADIUS = 10;
+// When shifting areas in the abyss, shift the square containing player LOS
+// plus a little extra so that the player won't be disoriented by taking a
+// step backward after an abyss shift.
+const int ABYSS_AREA_SHIFT_RADIUS = LOS_RADIUS + 2;
void generate_abyss();
void abyss_area_shift();