]> git.mxchange.org Git - flightgear.git/commitdiff
Put the id of the tile we are flying over into the property tree for
authorcurt <curt>
Thu, 28 Aug 2003 20:52:34 +0000 (20:52 +0000)
committercurt <curt>
Thu, 28 Aug 2003 20:52:34 +0000 (20:52 +0000)
convenience of debugging.

src/Scenery/tilemgr.cxx

index 6f9c8fea086bf8db76fc6b54ca46331685069b04..f6306678eb4cded62e953c21e4b154d7d06cdffb 100644 (file)
@@ -372,6 +372,7 @@ int FGTileMgr::update( SGLocation *location, double visibility_meters,
     current_bucket.set_bucket( longitude, latitude );
     // SG_LOG( SG_TERRAIN, SG_DEBUG, "Updating tile list for "
     //         << current_bucket );
+    fgSetInt( "/environment/current-tile-id", current_bucket.gen_index() );
 
     // set global scenery center from current tile center
     current_tile = tile_cache.get_tile( current_bucket );