From: frohlich Date: Sat, 7 Mar 2009 11:26:00 +0000 (+0000) Subject: Use new function. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2229491ffe4823d21d6c87211d9bb9e266d5078c;p=flightgear.git Use new function. Modified Files: src/FDM/groundcache.cxx --- diff --git a/src/FDM/groundcache.cxx b/src/FDM/groundcache.cxx index b55cd81d3..0d5f4e092 100644 --- a/src/FDM/groundcache.cxx +++ b/src/FDM/groundcache.cxx @@ -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;