]> git.mxchange.org Git - flightgear.git/commitdiff
Use new function.
authorfrohlich <frohlich>
Sat, 7 Mar 2009 11:26:00 +0000 (11:26 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 11 Mar 2009 22:14:33 +0000 (23:14 +0100)
Modified Files:
src/FDM/groundcache.cxx

src/FDM/groundcache.cxx

index b55cd81d320e16ca58032c3fdcf8130fc5963f0c..0d5f4e09274b8c3bf77ce4ec527a3a6c85ba8091 100644 (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;