mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
Added ftype::Trunc.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
4e9efa63ff
commit
11ee2b121b
@@ -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("-");
|
||||
|
||||
Reference in New Issue
Block a user