summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-06-24 15:05:41 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-06-24 15:17:48 +0200
commit95d586ab63656624fb0ffcdab8eb2431a65f9812 (patch)
treedff7cad12e3487136d3ca60674c615a59318695d /crawl-ref/source/los.h
parent6686ecb04fde39b6dc43c92913b2bc48fa422108 (diff)
downloadcrawl-ref-95d586ab63656624fb0ffcdab8eb2431a65f9812.tar.gz
crawl-ref-95d586ab63656624fb0ffcdab8eb2431a65f9812.zip
Make find_ray/exists_ray not track reduced LOS by default. (#1219)
After all, bolt ranges don't reduce when LOS range is reduced, and that's what find_ray/exists_ray are mainly used for.
Diffstat (limited to 'crawl-ref/source/los.h')
-rw-r--r--crawl-ref/source/los.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/los.h b/crawl-ref/source/los.h
index e1a8fe8f4f..8bf96d5570 100644
--- a/crawl-ref/source/los.h
+++ b/crawl-ref/source/los.h
@@ -19,14 +19,17 @@ bool double_is_zero(const double x);
void set_los_radius(int r);
int get_los_radius_sq(); // XXX
+// Default bounds that tracks global LOS radius.
#define BDS_DEFAULT (circle_def())
+// Default bounds for find_ray, used for beams.
+#define BDS_CONSTANT (circle_def(LOS_MAX_RANGE, C_ROUND))
bool find_ray(const coord_def& source, const coord_def& target,
ray_def& ray, const opacity_func &opc = opc_solid,
- const circle_def &bds = BDS_DEFAULT, bool cycle = false);
+ const circle_def &bds = BDS_CONSTANT, bool cycle = false);
bool exists_ray(const coord_def& source, const coord_def& target,
const opacity_func &opc = opc_solid,
- const circle_def &bds = BDS_DEFAULT);
+ const circle_def &bds = BDS_CONSTANT);
dungeon_feature_type ray_blocker(const coord_def& source, const coord_def& target);
void fallback_ray(const coord_def& source, const coord_def& target,