From 58a8b0d10309390e4663b076100dc9db55f835fe Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 14 Aug 1999 22:07:35 +0000 Subject: [PATCH] Minor tweaks. --- src/Scenery/tilecache.cxx | 4 ++++ src/Scenery/tileentry.cxx | 6 +++--- src/Scenery/tilemgr.cxx | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Scenery/tilecache.cxx b/src/Scenery/tilecache.cxx index 20f5d821f..2fb9ada68 100644 --- a/src/Scenery/tilecache.cxx +++ b/src/Scenery/tilecache.cxx @@ -103,6 +103,10 @@ FGTileCache::init( void ) tile_cache[i].mark_unused(); tile_cache[i].tile_bucket.make_bad(); } + + // and ... just in case we missed something ... + terrain->removeAllKids(); + FG_LOG( FG_TERRAIN, FG_DEBUG, " done with init()" ); } diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index 5633e2f7b..91b8ce5e5 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -133,19 +133,19 @@ FGTileEntry::free_tile() // selector to disable it from ever being drawn. void FGTileEntry::ssg_disable() { - cout << "TILE STATE = " << state << endl; + // cout << "TILE STATE = " << state << endl; if ( state == Scheduled_for_use ) { state = Scheduled_for_cache; } else if ( state == Scheduled_for_cache ) { // do nothing } else if ( (state == Loaded) || (state == Cached) ) { state = Cached; - cout << "DISABLING SSG NODE" << endl; + // cout << "DISABLING SSG NODE" << endl; select_ptr->select(0); } else { FG_LOG( FG_TERRAIN, FG_ALERT, "Trying to disable an unused tile! Dying" ); exit(-1); } - cout << "TILE STATE = " << state << endl; + // cout << "TILE STATE = " << state << endl; } diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index c81e4b96d..d76d7af04 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -103,7 +103,7 @@ int FGTileMgr::init( void ) { // schedule a tile for loading static void disable_tile( int cache_index ) { // see if tile already exists in the cache - cout << "DISABLING CACHE ENTRY = " << cache_index << endl; + // cout << "DISABLING CACHE ENTRY = " << cache_index << endl; FGTileEntry *t = global_tile_cache.get_tile( cache_index ); t->ssg_disable(); } @@ -116,7 +116,7 @@ int FGTileMgr::sched_tile( const FGBucket& b ) { if ( cache_index >= 0 ) { // tile exists in cache, reenable it. - cout << "REENABLING DISABLED TILE" << endl; + // cout << "REENABLING DISABLED TILE" << endl; FGTileEntry *t = global_tile_cache.get_tile( cache_index ); t->select_ptr->select( 1 ); t->mark_loaded(); @@ -391,7 +391,7 @@ FGTileMgr::current_elev_ssg( const Point3D& abs_view_pos, for ( int i = 0 ; i < num_hits ; i++ ) { ssgHit *h = &(results [ i ]) ; - cout << "got a hit!" << endl; + // cout << "got a hit!" << endl; /* Do something with 'h' */ }