EnterName: si has plenat tots els slots de lletres, apretar una volta mes el de fixar lletra fixa el nom

This commit is contained in:
2025-02-07 14:15:18 +01:00
parent 01591175ef
commit 84595da13a
6 changed files with 16 additions and 5 deletions

View File

@@ -1650,7 +1650,16 @@ void Game::handleNameInput(const std::shared_ptr<Player> &player)
input_->checkInput(InputType::FIRE_CENTER, INPUT_DO_NOT_ALLOW_REPEAT, options.controllers[controllerIndex].type, options.controllers[controllerIndex].index) ||
input_->checkInput(InputType::FIRE_RIGHT, INPUT_DO_NOT_ALLOW_REPEAT, options.controllers[controllerIndex].type, options.controllers[controllerIndex].index))
{
player->setInput(InputType::RIGHT);
if (player->getEnterNamePositionOverflow())
{
player->setInput(InputType::START);
addScoreToScoreBoard(player);
player->setPlayingState(PlayerState::SHOWING_NAME);
}
else
{
player->setInput(InputType::RIGHT);
}
}
else if (input_->checkInput(InputType::UP, INPUT_DO_NOT_ALLOW_REPEAT, options.controllers[controllerIndex].type, options.controllers[controllerIndex].index))
{