From 8b6f27f55180f53299763be45ad42a5a13ba6e07 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 8 Nov 2009 21:36:43 +0100 Subject: 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... --- crawl-ref/source/l_los.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/l_los.cc') 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); -- cgit v1.2.3-54-g00ecf