From 47332d4cd5e3297f9c80cac5e6cc83790920cf28 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 17 Oct 2009 15:36:38 +0200 Subject: 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. --- crawl-ref/source/defines.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/defines.h') 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 -- cgit v1.2.3-54-g00ecf