1
0
Fork 0

Use new function.

Modified Files:
	src/FDM/groundcache.cxx
This commit is contained in:
frohlich 2009-03-07 11:26:00 +00:00 committed by Tim Moore
parent 1845a95fd3
commit 2229491ffe

View file

@ -245,9 +245,7 @@ FGGroundCache::prepare_ground_cache(double ref_time, const SGVec3d& pt,
SGGeod geodPt = SGGeod::fromCart(pt);
// Don't blow away the cache ground_radius and stuff if there's no
// scenery
if (!globals->get_tile_mgr()->scenery_available(geodPt.getLatitudeDeg(),
geodPt.getLongitudeDeg(),
rad))
if (!globals->get_tile_mgr()->scenery_available(geodPt, rad))
return false;
_altitude = 0;