From ebf5a248635cf60c77083a6f6e2c13a6ac765cda Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 15 Oct 2009 11:31:01 +0200 Subject: 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. --- crawl-ref/source/spells4.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 2bf09e4eb8..b3f96e5ca3 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1369,7 +1369,7 @@ bool cast_fragmentation(int pow, const dist& spd) const char *what = NULL; ray_def ray; - if (!find_ray(you.pos(), spd.target, false, ray)) + if (!find_ray(you.pos(), spd.target, ray)) { mpr("There's a wall in the way!"); return (false); -- cgit v1.2.3-54-g00ecf