From 416fb94ae880d2f1ec1b16fbe621ae1219fb1b31 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sun, 13 Feb 2011 19:23:21 +0100 Subject: [PATCH] Clear tile cache on (re-)init. Clearing the cache was disabled to avoid scenery reloading on sim resets, which is now avoided elsewhere (in FG). Cache cleaning is now needed to support new option for complete scenery reloading. --- simgear/scene/tgdb/TileCache.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/simgear/scene/tgdb/TileCache.cxx b/simgear/scene/tgdb/TileCache.cxx index 26dffe7c..3032dea1 100644 --- a/simgear/scene/tgdb/TileCache.cxx +++ b/simgear/scene/tgdb/TileCache.cxx @@ -66,9 +66,7 @@ void TileCache::init( void ) { SG_LOG( SG_TERRAIN, SG_INFO, " current cache size = " << tile_cache.size() ); -#if 0 // don't clear the cache clear_cache(); -#endif SG_LOG( SG_TERRAIN, SG_INFO, " done with init()" ); } -- 2.39.5