Use new function.
Modified Files: src/FDM/groundcache.cxx
This commit is contained in:
parent
1845a95fd3
commit
2229491ffe
1 changed files with 1 additions and 3 deletions
|
@ -245,9 +245,7 @@ FGGroundCache::prepare_ground_cache(double ref_time, const SGVec3d& pt,
|
||||||
SGGeod geodPt = SGGeod::fromCart(pt);
|
SGGeod geodPt = SGGeod::fromCart(pt);
|
||||||
// Don't blow away the cache ground_radius and stuff if there's no
|
// Don't blow away the cache ground_radius and stuff if there's no
|
||||||
// scenery
|
// scenery
|
||||||
if (!globals->get_tile_mgr()->scenery_available(geodPt.getLatitudeDeg(),
|
if (!globals->get_tile_mgr()->scenery_available(geodPt, rad))
|
||||||
geodPt.getLongitudeDeg(),
|
|
||||||
rad))
|
|
||||||
return false;
|
return false;
|
||||||
_altitude = 0;
|
_altitude = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue