From 4b1d777ad40e1cb0d43d1cfb643963458314e941 Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 3 Dec 2000 19:32:42 +0000 Subject: [PATCH] Updated some "const" stuff. --- simgear/bucket/newbucket.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ); -- 2.39.5