1
0
Fork 0

Put the id of the tile we are flying over into the property tree for

convenience of debugging.
This commit is contained in:
curt 2003-08-28 20:52:34 +00:00
parent c86c81dad0
commit b23183f018

View file

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