[editor] Increase max editable building floors from 25 to 50

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2023-01-06 23:34:10 +01:00 committed by Alexander Borsuk
parent fcb670657c
commit a540ccb4bf
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ struct LocalizedStreet
class EditableMapObject : public MapObject
{
public:
static uint8_t constexpr kMaximumLevelsEditableByUsers = 25;
static uint8_t constexpr kMaximumLevelsEditableByUsers = 50;
bool IsNameEditable() const;
bool IsAddressEditable() const;

View file

@ -77,7 +77,7 @@ UNIT_TEST(EditableMapObject_ValidateBuildingLevels)
TEST(EditableMapObject::ValidateBuildingLevels("25"), ());
TEST(!EditableMapObject::ValidateBuildingLevels("0"), ());
TEST(!EditableMapObject::ValidateBuildingLevels("005"), ());
TEST(!EditableMapObject::ValidateBuildingLevels("26"), ());
TEST(!EditableMapObject::ValidateBuildingLevels(std::to_string(EditableMapObject::kMaximumLevelsEditableByUsers + 1)), ());
TEST(!EditableMapObject::ValidateBuildingLevels("22a"), ());
TEST(!EditableMapObject::ValidateBuildingLevels("a22"), ());
TEST(!EditableMapObject::ValidateBuildingLevels("2a22"), ());