Put the id of the tile we are flying over into the property tree for
convenience of debugging.
This commit is contained in:
parent
c86c81dad0
commit
b23183f018
1 changed files with 1 additions and 0 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue