Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-11-13 10:25:35 +01:00
parent 4ae64791ff
commit be15215b83
2 changed files with 6 additions and 2 deletions

View File

@@ -89,12 +89,15 @@ vector<MapObject::MetadataID> EditableMapObject::GetEditableProperties() const
bool EditableMapObject::CanMarkPlaceAsDisused() const
{
if (GetEditingLifecycle() == EditingLifecycle::CREATED)
return false;
auto types = GetTypes();
types.SortBySpec();
uint32_t mainType = *types.begin();
std::string mainTypeStr = classif().GetReadableObjectName(mainType);
std::vector<string_view> typePrefixes = {
constexpr string_view typePrefixes[] = {
"shop",
"amenity-restaurant",
"amenity-fast_food",