Merge pull request #3763 from Zverik/fix_wheelchair

[generator] Fix wheelchair type
This commit is contained in:
ygorshenin 2016-07-12 16:00:33 +03:00 committed by GitHub
commit 6a4d6c2c18

View file

@ -215,6 +215,9 @@ namespace
static const uint32_t psurface = classif().GetTypeByPath({ "psurface" });
static const uint32_t wheelchair = classif().GetTypeByPath({ "wheelchair" });
// Caching type length to exclude generic [wheelchair].
uint8_t const typeLength = ftype::GetLevel(type);
if (g == GEOM_LINE || g == GEOM_UNDEFINED)
{
if (roundabout == type)
@ -230,7 +233,7 @@ namespace
// We're okay with the type being already truncated above.
ftype::TruncValue(type, 1);
if (wheelchair == type)
if (wheelchair == type && typeLength == 2)
return true;
return false;