]> git.mxchange.org Git - flightgear.git/commitdiff
Don't bail out for lon == 180 or lat == 90
authorfrohlich <frohlich>
Thu, 15 Jun 2006 08:55:42 +0000 (08:55 +0000)
committerfrohlich <frohlich>
Thu, 15 Jun 2006 08:55:42 +0000 (08:55 +0000)
src/Scenery/tilemgr.cxx

index 198ad436e81392c24a15c9264c5d4a24408dce16..ccded6593ec32aa012e8b1994874564a050149d2 100644 (file)
@@ -495,7 +495,7 @@ int FGTileMgr::tile_filter_cb( ssgEntity *, int )
 bool FGTileMgr::scenery_available(double lat, double lon, double range_m)
 {
   // sanity check (unfortunately needed!)
-  if ( lon < -180.0 || lon > 180.0 || lat < -90.0 || lat > 90.0 )
+  if ( lon <= -180.0 || lon >= 180.0 || lat <= -90.0 || lat >= 90.0 )
     return false;
   
   SGBucket bucket(lon, lat);