]> git.mxchange.org Git - flightgear.git/commitdiff
Cleaned up comments to tile entry code
authortimoore <timoore>
Thu, 21 Feb 2008 22:50:05 +0000 (22:50 +0000)
committertimoore <timoore>
Thu, 21 Feb 2008 22:50:05 +0000 (22:50 +0000)
src/Scenery/newcache.cxx
src/Scenery/newcache.hxx
src/Scenery/tileentry.cxx

index a7d1980e3d33dc66a6155a1d74b1a67ab2018712..d17328a62ed109fe5247c87be8c6f32122634b90 100644 (file)
@@ -183,8 +183,6 @@ void FGNewCache::clear_cache() {
 bool FGNewCache::insert_tile( FGTileEntry *e ) {
     // register tile in the cache
     long tile_index = e->get_tile_bucket().gen_index();
-    // not needed if timestamps are updated in cull-callback
-    // e->set_timestamp(globals->get_sim_time_sec());
     tile_cache[tile_index] = e;
 
     return true;
index 1e92978987c6cc05087bc5055dd3399da506a571..78a3eb6eb86526e431cbb24ff6fa8bdd481f6226 100644 (file)
@@ -104,8 +104,6 @@ public:
     inline FGTileEntry *get_tile( const long tile_index ) const {
        const_tile_map_iterator it = tile_cache.find( tile_index );
        if ( it != tile_cache.end() ) {
-           // not needed if timestamps are updated in cull-callback
-           // it->second->set_timestamp(globals->get_sim_time_sec());
            return it->second;
        } else {
            return NULL;
index ab06bf62f15b99823c6f047dd921d03bcc4d8119..2eab669aa77906dc7d978931dd9e6e1d4a104db3 100644 (file)
@@ -96,6 +96,8 @@ public:
 
 namespace
 {
+// Update the timestamp on a tile whenever it is in view.
+
 class TileCullCallback : public osg::NodeCallback
 {
 public: