[ads] the ads are disabled for toll, ferry and dirty roads

This commit is contained in:
Arsentiy Milchakov 2019-04-22 14:21:10 +03:00 committed by Roman Kuznetsov
parent 01d4a3c5a7
commit a543a0d10b

View file

@ -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());