diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-12-02 04:23:32 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-12-03 11:02:04 +0100 |
commit | a248abcac039dda36919e2e8882f83b04685eca1 (patch) | |
tree | cca965406e217c5af20c62380cdd700ea6d8f905 /crawl-ref/source/los.h | |
parent | ada52c5036588e8fe63c87b5bb98b1848fdde539 (diff) | |
download | crawl-ref-a248abcac039dda36919e2e8882f83b04685eca1.tar.gz crawl-ref-a248abcac039dda36919e2e8882f83b04685eca1.zip |
Use a scalar range for find_ray() and friends instead of a circle_def object.
Diffstat (limited to 'crawl-ref/source/los.h')
-rw-r--r-- | crawl-ref/source/los.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/los.h b/crawl-ref/source/los.h index 8cdb919e39..b68b83d990 100644 --- a/crawl-ref/source/los.h +++ b/crawl-ref/source/los.h @@ -21,15 +21,12 @@ extern int los_radius2; // 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, - const circle_def &bds = BDS_CONSTANT, bool cycle = false); + int range = LOS_MAX_RANGE, bool cycle = false); bool exists_ray(const coord_def& source, const coord_def& target, - const opacity_func &opc, - const circle_def &bds = BDS_CONSTANT); + const opacity_func &opc, int range = LOS_MAX_RANGE); dungeon_feature_type ray_blocker(const coord_def& source, const coord_def& target); void fallback_ray(const coord_def& source, const coord_def& target, |