diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 23:30:11 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 23:49:51 +0200 |
commit | 0adf2c9dd91d2f49931fc242545b1e4cd7f5119b (patch) | |
tree | 136e0d0d210b358f072973742d9c6852ae112ef0 /crawl-ref/source/spells4.cc | |
parent | 1feac7b0b1cef1cea1ab107f0cce26e3a94e84b7 (diff) | |
download | crawl-ref-0adf2c9dd91d2f49931fc242545b1e4cd7f5119b.tar.gz crawl-ref-0adf2c9dd91d2f49931fc242545b1e4cd7f5119b.zip |
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.
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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); |