forked from organicmaps/organicmaps
[ads] the ads are disabled for toll, ferry and dirty roads
This commit is contained in:
parent
01d4a3c5a7
commit
a543a0d10b
1 changed files with 1 additions and 4 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue