]> git.mxchange.org Git - simgear.git/commitdiff
Fixed an IRIX warning message where an inline function is referenced
authorcurt <curt>
Tue, 1 Jun 1999 21:16:33 +0000 (21:16 +0000)
committercurt <curt>
Tue, 1 Jun 1999 21:16:33 +0000 (21:16 +0000)
before it is defined.

Lib/Bucket/newbucket.hxx

index 743c81d61720201dc9c0a8040ce41a4f07ba36c0..c037f9dc0ddf5998b108baf5c428b643c687ddaf 100644 (file)
@@ -282,18 +282,18 @@ inline double FGBucket::get_center_lon() const {
 }
 
 
-// return width of the tile
-inline double FGBucket::get_width() const {
-    return bucket_span( get_center_lat() );
-}
-
-
 // return the center lat of a tile
 inline double FGBucket::get_center_lat() const {
     return lat + y / 8.0 + FG_HALF_BUCKET_SPAN;
 }
 
 
+// return width of the tile
+inline double FGBucket::get_width() const {
+    return bucket_span( get_center_lat() );
+}
+
+
 // return height of the tile
 inline double FGBucket::get_height() const {
     return FG_BUCKET_SPAN;