From: curt Date: Thu, 28 Aug 2003 20:52:34 +0000 (+0000) Subject: Put the id of the tile we are flying over into the property tree for X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b23183f0184431b0028765fae2d07cdf582792cb;p=flightgear.git Put the id of the tile we are flying over into the property tree for convenience of debugging. --- 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 );