diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 21:36:43 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 21:38:13 +0100 |
commit | 8b6f27f55180f53299763be45ad42a5a13ba6e07 (patch) | |
tree | ad188db965ceb4a05e52bbc9993b20e6239ddf02 /crawl-ref/source/l_los.cc | |
parent | c4a0e05b9d3328834444e374a89d354ee0536396 (diff) | |
download | crawl-ref-8b6f27f55180f53299763be45ad42a5a13ba6e07.tar.gz crawl-ref-8b6f27f55180f53299763be45ad42a5a13ba6e07.zip |
Fix findray test.
There's a conflict between you.see_cell_no_trans and
los.find_ray with default argument opc_solid. As a quick fix,
make los.find_ray use opc_no_trans, but this doesn't increase
the general usefulness of los.find_ray...
Diffstat (limited to 'crawl-ref/source/l_los.cc')
-rw-r--r-- | crawl-ref/source/l_los.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/l_los.cc b/crawl-ref/source/l_los.cc index b8ee71a573..377dc4461b 100644 --- a/crawl-ref/source/l_los.cc +++ b/crawl-ref/source/l_los.cc @@ -27,7 +27,9 @@ 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, *ray)) + // XXX: opc_no_trans to fit with you.see_cell_no_trans + // in findray test case. + if (find_ray(a, b, *ray, opc_no_trans)) { lua_push_ray(ls, ray); return (1); |