]> git.mxchange.org Git - simgear.git/commitdiff
Use the new SGBucket api
authorChristian Schmitt <chris@ilovelinux.de>
Fri, 21 Feb 2014 16:38:26 +0000 (17:38 +0100)
committerChristian Schmitt <chris@ilovelinux.de>
Fri, 21 Feb 2014 16:38:26 +0000 (17:38 +0100)
simgear/scene/tgdb/BucketBox.hxx

index 1d43c3df510df2eaa3668cb3091a09bdeab5707b..2e259f89076b36a1df11312e561273343144ebb4 100644 (file)
@@ -138,7 +138,7 @@ public:
     {
         // left align longitude offsets
         unsigned offset = _offset[0] - _offset[0] % _bucketSpanAtOffset(_offset[1]);
-        return SGBucket(_offsetToLongitudeDeg(offset), _offsetToLatitudeDeg(_offset[1]));
+        return SGBucket( SGGeod::fromDeg(_offsetToLongitudeDeg(offset), _offsetToLatitudeDeg(_offset[1])) );
     }
 
     BucketBox getParentBox(unsigned level) const