diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-31 17:25:39 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-01 21:45:25 +0100 |
commit | d106005da5f41332ac26febe398adb0d5bb61de0 (patch) | |
tree | d3c80bc9503f4c4bc01848ad2eb6333edf1122a8 /crawl-ref/source/ray.cc | |
parent | 5dcf2e450126f680b8c58f3921857c025803a34a (diff) | |
download | crawl-ref-d106005da5f41332ac26febe398adb0d5bb61de0.tar.gz crawl-ref-d106005da5f41332ac26febe398adb0d5bb61de0.zip |
Make nextcell and movehalfcell methods of geom::ray.
Seems sensible given they modify the ray, even if it's not really
something intrinsic to a ray.
Diffstat (limited to 'crawl-ref/source/ray.cc')
-rw-r--r-- | crawl-ref/source/ray.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc index 32b9531fd5..e0fa416f91 100644 --- a/crawl-ref/source/ray.cc +++ b/crawl-ref/source/ray.cc @@ -40,23 +40,23 @@ bool ray_def::advance() if (on_corner) { on_corner = false; - geom::movehalfcell(r, diamonds); + r.move_half_cell(diamonds); } else { // Starting inside a diamond. - bool c = !geom::nextcell(r, diamonds); + bool c = !r.to_next_cell(diamonds); if (c) { // r is now on a corner, going from diamond to diamond. - geom::movehalfcell(r, diamonds); + r.move_half_cell(diamonds); return (false); } } // Now inside a non-diamond. - if (geom::nextcell(r, diamonds)) + if (r.to_next_cell(diamonds)) return (true); else { |