From 2229491ffe4823d21d6c87211d9bb9e266d5078c Mon Sep 17 00:00:00 2001 From: frohlich Date: Sat, 7 Mar 2009 11:26:00 +0000 Subject: [PATCH] Use new function. Modified Files: src/FDM/groundcache.cxx --- src/FDM/groundcache.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;