1
0
Fork 0

Don't bail out for lon == 180 or lat == 90

This commit is contained in:
frohlich 2006-06-15 08:55:42 +00:00
parent c2d8dcc18b
commit d11ec8c8e7

View 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);