summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_los.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-15 11:31:01 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-15 11:36:21 +0200
commitebf5a248635cf60c77083a6f6e2c13a6ac765cda (patch)
tree736c407dc0a3b7f83129eea2522b40049de25638 /crawl-ref/source/l_los.cc
parent26cadc029618115ae85103c807ea38b7f52c3838 (diff)
downloadcrawl-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/l_los.cc')
-rw-r--r--crawl-ref/source/l_los.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_los.cc b/crawl-ref/source/l_los.cc
index 1fe19e75bd..3d4c38f498 100644
--- a/crawl-ref/source/l_los.cc
+++ b/crawl-ref/source/l_los.cc
@@ -25,7 +25,7 @@ LUAFN(los_find_ray)
GETCOORD(a, 1, 2, map_bounds);
GETCOORD(b, 3, 4, map_bounds);
ray_def *ray = new ray_def;
- if (find_ray(a, b, false, *ray, 0, true))
+ if (find_ray(a, b, *ray, 0, true))
{
lua_push_ray(ls, ray);
return (1);