From 245f48f5ffbeeade1249f4aee3be08bd0ee18766 Mon Sep 17 00:00:00 2001 From: Guilhem Bonnefille Date: Sat, 24 Oct 2009 21:05:52 +0200 Subject: [PATCH] Try to download newer tiles when autodownload is set and server supports such check When a server allows to download newer tiles only, the autodownload option must fire such a download every time. --- src/vikmapslayer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vikmapslayer.c b/src/vikmapslayer.c index ab7388a8..401ae87c 100644 --- a/src/vikmapslayer.c +++ b/src/vikmapslayer.c @@ -638,7 +638,12 @@ static void maps_layer_draw_section ( VikMapsLayer *vml, VikViewport *vvp, VikCo #ifdef DEBUG fputs(stderr, "DEBUG: Starting autodownload\n"); #endif - start_download_thread ( vml, vvp, ul, br, REDOWNLOAD_NONE ); + if ( map_type->options != NULL && map_type->options->check_file_server_time == TRUE ) + // Try to download newer tiles + start_download_thread ( vml, vvp, ul, br, REDOWNLOAD_NEW ); + else + // Download only missing tiles + start_download_thread ( vml, vvp, ul, br, REDOWNLOAD_NONE ); } if ( map_type->tilesize_x == 0 && !existence_only ) { -- 2.39.5