summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/geom2d.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-31 09:08:37 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-01 21:45:24 +0100
commit2130c831446f0b7f2487a4704503901bf1e375e7 (patch)
treea7b601a88b936ccf45d579cd0e8d43caad6d9b14 /crawl-ref/source/geom2d.h
parenta062c664e4802851fba4cc5a001e49a61698f4a3 (diff)
downloadcrawl-ref-2130c831446f0b7f2487a4704503901bf1e375e7.tar.gz
crawl-ref-2130c831446f0b7f2487a4704503901bf1e375e7.zip
Change corner handling.
ray_def should now deal with hitting corners gracefully, though the raycasting will still discard such rays. If a ray hits a corner between two diamonds, it will stay there, and calling ray_def::pos will arbitrarily give one of the squares -- this is not optimal, but these rays shouldn't usually show up anyway.
Diffstat (limited to 'crawl-ref/source/geom2d.h')
-rw-r--r--crawl-ref/source/geom2d.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/geom2d.h b/crawl-ref/source/geom2d.h
index d65ea06842..37b62745df 100644
--- a/crawl-ref/source/geom2d.h
+++ b/crawl-ref/source/geom2d.h
@@ -76,7 +76,8 @@ struct grid
double intersect(const ray &r, const line &l);
double nextintersect(const ray &r, const lineseq &ls);
-bool nextcell(ray &r, const grid &g, bool pass_corner);
+bool nextcell(ray &r, const grid &g);
+void movehalfcell(ray &r, const grid &g);
}