Increase maximum name length from 64 to 100 characters so players can have longer world names

This commit is contained in:
Jazzitch 2026-03-20 02:18:36 -04:00 committed by GitHub
parent 8db8236662
commit 7daa4134ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,7 @@ void NameEntryScreen::buttonClicked(Button button)
void NameEntryScreen::keyPressed(wchar_t ch, int eventKey)
{
if (eventKey == Keyboard::KEY_BACK && name.length() > 0) name = name.substr(0, name.length() - 1);
if (allowedChars.find(ch) != wstring::npos && name.length()<64)
if (allowedChars.find(ch) != wstring::npos && name.length()<100)
{
name += ch;
}
@ -75,4 +75,4 @@ void NameEntryScreen::render(int xm, int ym, float a)
drawString(font, name + (frame / 6 % 2 == 0 ? L"_" : L""), bx + 4, by + (bh - 8) / 2, 0xe0e0e0);
Screen::render(xm, ym, a);
}
}