]> git.mxchange.org Git - flightgear.git/commitdiff
Minor tweaks.
authorcurt <curt>
Sat, 14 Aug 1999 22:07:35 +0000 (22:07 +0000)
committercurt <curt>
Sat, 14 Aug 1999 22:07:35 +0000 (22:07 +0000)
src/Scenery/tilecache.cxx
src/Scenery/tileentry.cxx
src/Scenery/tilemgr.cxx

index 20f5d821f71947cf869a179502df8a623ed38959..2fb9ada68cee73af8c54bac1f612862653c514e9 100644 (file)
@@ -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()"  );
 }
 
index 5633e2f7b65f9da9cbd9e5fbce917f18b51ef8c3..91b8ce5e532592c63596bd619e4461728495ac64 100644 (file)
@@ -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;
 }
index c81e4b96da65299567fa49f30803da9dd84816cd..d76d7af04fc4cb27cf77ee88d4c22f0161ce1762 100644 (file)
@@ -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' */
     }