summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/defines.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-06-24 17:02:19 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-06-24 17:14:46 +0200
commitbf500ca0f0c03f9b47483a75c60910e70388e638 (patch)
treee9bd0fa575222337ddf703b062481e95006ea856 /crawl-ref/source/defines.h
parentc702831a7453b0c4c2aed77e2d3b2fd7bb5cf1fd (diff)
downloadcrawl-ref-bf500ca0f0c03f9b47483a75c60910e70388e638.tar.gz
crawl-ref-bf500ca0f0c03f9b47483a75c60910e70388e638.zip
Remove #define LOS_MAX_RADIUS
Having both it and LOS_RADIUS is misleading, especially as they're arbitrarily used. This distinction doesn't make sense anyway, as any LOS changes need to be done at runtime, only the max matters during compilation.
Diffstat (limited to 'crawl-ref/source/defines.h')
-rw-r--r--crawl-ref/source/defines.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/defines.h b/crawl-ref/source/defines.h
index 8b25fd55a7..699d75979d 100644
--- a/crawl-ref/source/defines.h
+++ b/crawl-ref/source/defines.h
@@ -129,17 +129,14 @@ const int LABYRINTH_BORDER = 4;
#define Y_BOUND_2 (GYM - BOUNDARY_BORDER)
#define Y_WIDTH (Y_BOUND_2 - Y_BOUND_1 + 1)
-// default LOS radius
+// maximal LOS radius
#define LOS_RADIUS 8
-// default LOS radius squared, for comparison with distance()
+// maximal LOS radius squared, for comparison with distance()
#define LOS_RADIUS_SQ (LOS_RADIUS * LOS_RADIUS + 1)
-// maximal LOS radius
-#define LOS_MAX_RADIUS LOS_RADIUS
-#define LOS_MAX_RADIUS_SQ (LOS_MAX_RADIUS * LOS_MAX_RADIUS + 1)
// maximal horizontal or vertical LOS range:
// a quadrant needs to fit inside an 2D array with
// 0 <= x, y <= LOS_MAX_RANGE
-#define LOS_MAX_RANGE LOS_MAX_RADIUS
+#define LOS_MAX_RANGE LOS_RADIUS
#define ENV_SHOW_OFFSET LOS_MAX_RANGE
#define ENV_SHOW_DIAMETER (ENV_SHOW_OFFSET * 2 + 1)