]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/groundcache.cxx
Improve timing statistics
[flightgear.git] / src / FDM / groundcache.cxx
index 69cd3f187bce5601ce6c7445d29783cbb759123f..9d83e283e2c1474a27d7c68e138b63d7ce8cf636 100644 (file)
@@ -328,7 +328,7 @@ FGGroundCache::prepare_ground_cache(double startSimTime, double endSimTime,
     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, rad)) {
+    if (!globals->get_tile_mgr()->schedule_scenery(geodPt, rad, 1.0)) {
         SG_LOG(SG_FLIGHT, SG_WARN, "prepare_ground_cache(): scenery_available "
                "returns false at " << geodPt << " " << pt << " " << rad);
         return false;