From b23183f0184431b0028765fae2d07cdf582792cb Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 28 Aug 2003 20:52:34 +0000 Subject: [PATCH] Put the id of the tile we are flying over into the property tree for convenience of debugging. --- src/Scenery/tilemgr.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 6f9c8fea0..f6306678e 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -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 );