From fcc4caed08170b9048de65301ea0b5d94b5ba278 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Tue, 26 Jan 2016 19:35:21 +0300 Subject: [PATCH] [old map downloader] Fixing downloading single mwm. --- storage/storage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storage/storage.cpp b/storage/storage.cpp index bd9c3e5947..6c73fcaa70 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -4,6 +4,7 @@ #include "defines.hpp" #include "platform/local_country_file_utils.hpp" +#include "platform/mwm_version.hpp" #include "platform/platform.hpp" #include "platform/servers_list.hpp" #include "platform/settings.hpp" @@ -775,7 +776,8 @@ MapOptions Storage::NormalizeDownloadFileSet(TIndex const & index, MapOptions op } // Check whether requested file is not empty. - if (GetRemoteSize(country, option) == 0) + if ((version::IsSingleMwm(GetCurrentDataVersion()) && option == MapOptions::CarRouting) + || GetRemoteSize(country, option) == 0) { ASSERT_NOT_EQUAL(MapOptions::Map, option, ("Map can't be empty.")); options = UnsetOptions(options, option);