diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-14 15:02:20 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-14 15:04:05 +0200 |
commit | db50ccc39e08efd2826459ef0bd9f209ac4ef74a (patch) | |
tree | 09d7bc3a43409d33df48a587897349785c5819f2 /crawl-ref/source/l_los.cc | |
parent | 8583568428f7234e0f7b1d2cd2dc3af47c8210be (diff) | |
download | crawl-ref-db50ccc39e08efd2826459ef0bd9f209ac4ef74a.tar.gz crawl-ref-db50ccc39e08efd2826459ef0bd9f209ac4ef74a.zip |
Fix bug with find_ray always falling back.
This was caused by an incorrectly inverted test.
Also update the find_ray binding so the findray test would have
found the bug.
Diffstat (limited to 'crawl-ref/source/l_los.cc')
-rw-r--r-- | crawl-ref/source/l_los.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_los.cc b/crawl-ref/source/l_los.cc index 8130194210..1fe19e75bd 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)) + if (find_ray(a, b, false, *ray, 0, true)) { lua_push_ray(ls, ray); return (1); |