diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-10 16:19:07 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-10 19:16:54 +0200 |
commit | b7afef93c4c102d1fc4f1617944b9acd2ddb541e (patch) | |
tree | 1ab39ab064fa742501e3948d5562de6e37608d0e /crawl-ref/source | |
parent | ecf93b9763ba7d21228db03a5b1a4b28a60796c0 (diff) | |
download | crawl-ref-b7afef93c4c102d1fc4f1617944b9acd2ddb541e.tar.gz crawl-ref-b7afef93c4c102d1fc4f1617944b9acd2ddb541e.zip |
Declare ray_def::footprint const.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/ray.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/ray.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/ray.cc b/crawl-ref/source/ray.cc index cb9117de62..b52d7401ef 100644 --- a/crawl-ref/source/ray.cc +++ b/crawl-ref/source/ray.cc @@ -322,7 +322,7 @@ int ray_def::raw_advance() // slope, bounded by the given pre-squared LOS radius. // Store the visited cells in xpos[] and ypos[], and // return the number of cells visited. -int ray_def::footprint(int radius2, int xpos[], int ypos[]) +int ray_def::footprint(int radius2, int xpos[], int ypos[]) const { // copy starting point double ax = accx; diff --git a/crawl-ref/source/ray.h b/crawl-ref/source/ray.h index acea3a33c1..9c72098981 100644 --- a/crawl-ref/source/ray.h +++ b/crawl-ref/source/ray.h @@ -32,7 +32,7 @@ public: void advance_and_bounce(); void regress(); - int footprint(int radius2, int xpos[], int ypos[]); + int footprint(int radius2, int xpos[], int ypos[]) const; // Gets/sets the slope in terms of degrees, with 0 = east, 90 = north, // 180 = west, 270 = south, 360 = east, -90 = south, etc |