From b7afef93c4c102d1fc4f1617944b9acd2ddb541e Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 10 Oct 2009 16:19:07 +0200 Subject: Declare ray_def::footprint const. --- crawl-ref/source/ray.cc | 2 +- crawl-ref/source/ray.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source') 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 -- cgit v1.2.3-54-g00ecf