diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-15 11:31:01 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-15 11:36:21 +0200 |
commit | ebf5a248635cf60c77083a6f6e2c13a6ac765cda (patch) | |
tree | 736c407dc0a3b7f83129eea2522b40049de25638 /crawl-ref/source/los.h | |
parent | 26cadc029618115ae85103c807ea38b7f52c3838 (diff) | |
download | crawl-ref-ebf5a248635cf60c77083a6f6e2c13a6ac765cda.tar.gz crawl-ref-ebf5a248635cf60c77083a6f6e2c13a6ac765cda.zip |
Remove fallback calculation from find_ray.
There is now a separate fallback_ray() that needs to be called
explicitly. I've manually converted uses of find_ray with
allow_fallback == true.
find_ray with allow_fallback set always returned true, yet there
were a number of places that used the return value, in particular
in directn.cc. I'll check these later.
Diffstat (limited to 'crawl-ref/source/los.h')
-rw-r--r-- | crawl-ref/source/los.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/los.h b/crawl-ref/source/los.h index 1c258d34a8..d448037c7e 100644 --- a/crawl-ref/source/los.h +++ b/crawl-ref/source/los.h @@ -18,9 +18,11 @@ void setLOSRadius(int newLR); int get_los_radius_squared(); // XXX struct ray_def; -bool find_ray( const coord_def& source, const coord_def& target, - bool allow_fallback, ray_def& ray, int cycle_dir = 0, - bool find_shortest = false, bool ignore_solid = false ); +bool find_ray(const coord_def& source, const coord_def& target, + ray_def& ray, int cycle_dir = 0, bool find_shortest = false, + bool ignore_solid = false); +void fallback_ray(const coord_def& source, const coord_def& target, + ray_def& ray); int num_feats_between(const coord_def& source, const coord_def& target, dungeon_feature_type min_feat, |