From: curt Date: Sun, 3 Dec 2000 19:32:42 +0000 (+0000) Subject: Updated some "const" stuff. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b1d777ad40e1cb0d43d1cfb643963458314e941;p=simgear.git Updated some "const" stuff. --- diff --git a/simgear/bucket/newbucket.hxx b/simgear/bucket/newbucket.hxx index 3d19d229..7fabfb6e 100644 --- a/simgear/bucket/newbucket.hxx +++ b/simgear/bucket/newbucket.hxx @@ -98,7 +98,7 @@ public: void make_bad ( void ); // Generate the unique scenery tile index for this bucket - long int gen_index(); + long int gen_index() const; string gen_index_str() const; // Build the path name for this bucket @@ -270,7 +270,7 @@ inline FGBucket::~FGBucket() {} // 3 bits - to represent x (0 to 7) // 3 bits - to represent y (0 to 7) -inline long int FGBucket::gen_index() { +inline long int FGBucket::gen_index() const { return ((lon + 180) << 14) + ((lat + 90) << 6) + (y << 3) + x; } @@ -319,8 +319,8 @@ inline void FGBucket::make_bad( void ) { } -// offset a bucket struct by the specified tile units in the X & Y -// direction +// offset a bucket specified by dlon, dlat by the specified tile units +// in the X & Y direction FGBucket fgBucketOffset( double dlon, double dlat, int x, int y );