Added ftype::Trunc.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako
2025-07-15 00:00:37 -03:00
committed by Konstantin Pastbin
parent 4e9efa63ff
commit 11ee2b121b
4 changed files with 11 additions and 14 deletions

View File

@@ -95,10 +95,9 @@ string GetWheelchairType(FeatureType & f)
{
static const uint32_t wheelchair = classif().GetTypeByPath({"wheelchair"});
string result;
f.ForEachType([&result](uint32_t type) {
uint32_t truncated = type;
ftype::TruncValue(truncated, 1);
if (truncated == wheelchair)
f.ForEachType([&result](uint32_t type)
{
if (ftype::Trunc(type, 1) == wheelchair)
{
string fullName = classif().GetReadableObjectName(type);
auto pos = fullName.find("-");