Better GetPopulationRank routine.

This commit is contained in:
vng 2011-06-01 22:40:09 +03:00 committed by Alex Zolotarev
parent 1da1ecf3b6
commit 4624371bc4
2 changed files with 2 additions and 2 deletions

View file

@ -1006,7 +1006,7 @@ double FeatureType::GetPopulationDrawRank() const
// Do not return rank for countries.
if (feature::IsCountry(m_Types, m_Types + GetTypesCount()))
return 0.5;
return 0.0;
else
return min(3.0E6, static_cast<double>(n)) / 3.0E6;
}

View file

@ -163,7 +163,7 @@ namespace fwork
shared_ptr<di::DrawInfo> ptr(
new di::DrawInfo(f.GetPreferredDrawableName(languages::GetCurrentPriorities()),
f.GetPopulationDrawRank()));
m_zoom > 5 ? f.GetPopulationDrawRank() : 0.0));
DrawerYG * pDrawer = GetDrawer();