Don't bail out for lon == 180 or lat == 90
This commit is contained in:
parent
c2d8dcc18b
commit
d11ec8c8e7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue