]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/newcache.hxx
Make use of the ground material types
[flightgear.git] / src / Scenery / newcache.hxx
index de0db296d75cad23c5733c576c3709e099c3a9db..50bdb8225acf96c4320886dc219aaf53f5589d17 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -97,8 +97,8 @@ public:
     void clear_cache();
 
     // Return a pointer to the specified tile cache entry 
-    inline FGTileEntry *get_tile( const long tile_index ) {
-       tile_map_iterator it = tile_cache.find( tile_index );
+    inline FGTileEntry *get_tile( const long tile_index ) const {
+       const_tile_map_iterator it = tile_cache.find( tile_index );
        if ( it != tile_cache.end() ) {
            it->second->set_timestamp(globals->get_sim_time_sec());
            return it->second;
@@ -108,7 +108,7 @@ public:
     }
 
     // Return a pointer to the specified tile cache entry 
-    inline FGTileEntry *get_tile( const SGBucket& b ) {
+    inline FGTileEntry *get_tile( const SGBucket& b ) const {
        return get_tile( b.gen_index() );
     }
 
@@ -118,7 +118,7 @@ public:
     // External linear traversal of cache
     inline void reset_traversal() { current = tile_cache.begin(); }
     inline bool at_end() { return current == tile_cache.end(); }
-    inline FGTileEntry *get_current() {
+    inline FGTileEntry *get_current() const {
        // cout << "index = " << current->first << endl;
        return current->second;
     }