From 0adf2c9dd91d2f49931fc242545b1e4cd7f5119b Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 16 Oct 2009 23:30:11 +0200 Subject: Some find_ray related cleanup. Introduce a function exists_ray when the ray is not actually needed. Also factor out part of _blocked_ray from directn.cc to ray_blocker. --- crawl-ref/source/spells4.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 5fe91b53bd..0339e79934 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1371,8 +1371,7 @@ bool cast_fragmentation(int pow, const dist& spd) bool hole = true; const char *what = NULL; - ray_def ray; - if (!find_ray(you.pos(), spd.target, ray)) + if (!exists_ray(you.pos(), spd.target)) { mpr("There's a wall in the way!"); return (false); -- cgit v1.2.3-54-g00ecf