diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-18 12:53:18 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-18 14:48:42 +0200 |
commit | 6f728490c38e33a675d35b6798fab43ef0ec2455 (patch) | |
tree | 345ac5ea52c6727902bddfc130c5090339045891 /crawl-ref/source/ray.cc | |
parent | 4eae47b87412963d8047e52f6befc109cd9231b4 (diff) | |
download | crawl-ref-6f728490c38e33a675d35b6798fab43ef0ec2455.tar.gz crawl-ref-6f728490c38e33a675d35b6798fab43ef0ec2455.zip |
Remove obsolete copy of footprint().
Diffstat (limited to 'crawl-ref/source/ray.cc')
-rw-r--r-- | crawl-ref/source/ray.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc index 6d3db368d6..4d08b9f579 100644 --- a/crawl-ref/source/ray.cc +++ b/crawl-ref/source/ray.cc @@ -285,24 +285,3 @@ adv_type ray_def::raw_advance() flip(); return rc; } - -// Shoot a ray from the given start point (accx, accy) with the given -// slope, bounded by the given pre-squared LOS radius. -// Store the visited cells in pos[], and -// return the number of cells visited. -int ray_def::footprint(int radius2, coord_def cpos[]) const -{ - ray_def copy = *this; - coord_def c; - int cellnum; - for (cellnum = 0; true; ++cellnum) - { - copy.raw_advance(); - c = copy.pos(); - if (c.abs() > radius2) - break; - - cpos[cellnum] = c; - } - return cellnum; -} |