Añadido limite de caracteres para el jailerID en el marcador

This commit is contained in:
2023-02-13 12:19:06 +01:00
parent 10e9abece9
commit 9f17ffdeb3
3 changed files with 6 additions and 4 deletions

View File

@@ -1739,7 +1739,7 @@ void Game::renderScoreBoard()
{
if (jscore::getNumUsers() > 0)
{
const std::string txt = jscore::getUserName(0) + " - " + updateScoreText((Uint32)jscore::getPoints(0));
const std::string txt = jscore::getUserName(0).substr(0,12) + " - " + updateScoreText((Uint32)jscore::getPoints(0));
textScoreBoard->writeCentered(PLAY_AREA_CENTER_X, offset4, txt);
}
else