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 | |
parent | 4eae47b87412963d8047e52f6befc109cd9231b4 (diff) | |
download | crawl-ref-6f728490c38e33a675d35b6798fab43ef0ec2455.tar.gz crawl-ref-6f728490c38e33a675d35b6798fab43ef0ec2455.zip |
Remove obsolete copy of footprint().
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/ray.cc | 21 | ||||
-rw-r--r-- | crawl-ref/source/ray.h | 2 |
2 files changed, 0 insertions, 23 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; -} diff --git a/crawl-ref/source/ray.h b/crawl-ref/source/ray.h index 0505f8923c..aa4570426e 100644 --- a/crawl-ref/source/ray.h +++ b/crawl-ref/source/ray.h @@ -40,8 +40,6 @@ public: void advance_and_bounce(); void regress(); - int footprint(int radius2, coord_def pos[]) const; - // Gets/sets the slope in terms of degrees, with 0 = east, 90 = north, // 180 = west, 270 = south, 360 = east, -90 = south, etc double get_degrees() const; |