1
0
Fork 0

Properly drop empty tiles from tile cache.

Tiles which expired before being loaded could clog the tile cache.
This commit is contained in:
ThorstenB 2012-03-28 23:03:13 +02:00
parent 8a382cd536
commit 5ef15023fc

View file

@ -100,6 +100,7 @@ long TileCache::get_drop_tile() {
* Allow a 1 second timeout since an empty tiles may just be loaded...
*/
SG_LOG( SG_TERRAIN, SG_DEBUG, " dropping an unused and empty tile");
min_index = index;
break;
}
if (( e->get_time_expired() < min_time )||