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()" );
}
// 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;
}
// 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();
}
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();
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' */
}