Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/map
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2019-04-22 14:21:10 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2019-04-22 14:24:19 +0300
commita543a0d10bbdf106d92c48edd9e50cf1b1be275a (patch)
tree6f552d2d21c5a97f910e89d5e11516bdd4f60686 /map
parent01d4a3c5a73380613f0095d5a0e383464d1a9905 (diff)
[ads] the ads are disabled for toll, ferry and dirty roads
Diffstat (limited to 'map')
-rw-r--r--map/place_page_info.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/map/place_page_info.cpp b/map/place_page_info.cpp
index 670c4331b7..5c4849984b 100644
--- a/map/place_page_info.cpp
+++ b/map/place_page_info.cpp
@@ -312,10 +312,7 @@ boost::optional<int> Info::GetRawApproximatePricing() const
bool Info::HasBanner() const
{
- if (!m_adsEngine)
- return false;
-
- if (IsMyPosition())
+ if (!m_adsEngine || IsMyPosition() || IsRoadType())
return false;
return m_adsEngine->HasBanner(m_types, m_topmostCountryIds, languages::GetCurrentNorm());