From f6cf2bbe461eb50243c279f5bc4b6efe1ab9c4da Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 31 Oct 2009 19:04:46 +0100 Subject: Change ray_def bouncing interface. For one, rename ray_def::advance_and_bounce to ray_def::bounce. Then, pass a grid of bools for adjacent cells which states which cells are considered solid (reflecting). --- crawl-ref/source/ray.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/ray.cc') diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc index 74d402c7ce..dff1d3e82a 100644 --- a/crawl-ref/source/ray.cc +++ b/crawl-ref/source/ray.cc @@ -66,7 +66,7 @@ bool ray_def::advance() } } -void ray_def::advance_and_bounce() +void ray_def::bounce(const reflect_grid &rg) { // XXX r.dir = -r.dir; -- cgit v1.2.3-54-g00ecf