summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/defines.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-17 15:36:38 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-17 16:45:17 +0200
commit47332d4cd5e3297f9c80cac5e6cc83790920cf28 (patch)
tree725ad62d4d811b962fd949edb0f9154c14c62854 /crawl-ref/source/defines.h
parent2f62da4f8d850459676d780980dbabb7f25a1488 (diff)
downloadcrawl-ref-47332d4cd5e3297f9c80cac5e6cc83790920cf28.tar.gz
crawl-ref-47332d4cd5e3297f9c80cac5e6cc83790920cf28.zip
Clean up LOS precalculation settings.
The maximal boundary within which losight/find_ray will work is now clearly defined at the start of los.cc. By default, it's the circle with radius LOS_MAX_RADIUS == LOS_RADIUS.
Diffstat (limited to 'crawl-ref/source/defines.h')
-rw-r--r--crawl-ref/source/defines.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/defines.h b/crawl-ref/source/defines.h
index 2ef5a2fee9..a5ca761886 100644
--- a/crawl-ref/source/defines.h
+++ b/crawl-ref/source/defines.h
@@ -107,7 +107,12 @@ const int LABYRINTH_BORDER = 4;
#define Y_ABYSS_CENTER (Y_ABYSS_1 + Y_ABYSS_WIDTH / 2)
#define LOS_RADIUS 8
-#define ENV_SHOW_OFFSET (LOS_RADIUS + 1)
+#define LOS_RADIUS_SQ (LOS_RADIUS * LOS_RADIUS + 1)
+#define LOS_MAX_RADIUS LOS_RADIUS
+#define LOS_MAX_RADIUS_SQ (LOS_MAX_RADIUS * LOS_MAX_RADIUS + 1)
+#define LOS_MAX_RADIUS LOS_RADIUS
+#define LOS_MAX_RANGE LOS_MAX_RADIUS
+#define ENV_SHOW_OFFSET (LOS_MAX_RANGE + 1)
#define ENV_SHOW_DIAMETER (ENV_SHOW_OFFSET * 2 + 1)
#define VIEW_BASE_WIDTH 33 // FIXME: never used