diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-14 09:40:47 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-14 12:03:30 +0200 |
commit | 97ac9424c4676f6dee9c9e2e8fd7cec93b5e37ce (patch) | |
tree | 1a282c045dba05c5b84123e1f50cdf2c9ff02683 /crawl-ref/source/l_los.cc | |
parent | 832acfd1812519980c09122f380e8aca07e118e2 (diff) | |
download | crawl-ref-97ac9424c4676f6dee9c9e2e8fd7cec93b5e37ce.tar.gz crawl-ref-97ac9424c4676f6dee9c9e2e8fd7cec93b5e37ce.zip |
Correct findray test.
Now only targets cells that are not blocked by transparent walls
etc. find_ray can't currently check for real visibility.
Diffstat (limited to 'crawl-ref/source/l_los.cc')
-rw-r--r-- | crawl-ref/source/l_los.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/l_los.cc b/crawl-ref/source/l_los.cc index f43d5f914c..8130194210 100644 --- a/crawl-ref/source/l_los.cc +++ b/crawl-ref/source/l_los.cc @@ -22,10 +22,10 @@ void lua_push_ray(lua_State *ls, ray_def *ray) LUAFN(los_find_ray) { - COORDS(a, 1, 2); - COORDS(b, 3, 4); + 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, false, *ray)) { lua_push_ray(ls, ray); return (1); |