Pots pasar quan mostra el nom que has introdiut apretant qualsevol botó de disparar

This commit is contained in:
2025-03-10 20:13:38 +01:00
parent c88a277cba
commit 79b2917112
3 changed files with 9 additions and 2 deletions

View File

@@ -1555,7 +1555,7 @@ void Game::handlePlayersInput()
// Gestiona la continuación del jugador.
handlePlayerContinue(player);
}
else if (player->isEnteringName() || player->isEnteringNameGameCompleted())
else if (player->isEnteringName() || player->isEnteringNameGameCompleted() || player->isShowingName())
{
// Gestiona la introducción del nombre del jugador.
handleNameInput(player);
@@ -1650,7 +1650,11 @@ 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))
{
if (player->getEnterNamePositionOverflow())
if (player->isShowingName())
{
player->setPlayingState(PlayerState::CONTINUE);
}
else if (player->getEnterNamePositionOverflow())
{
player->setInput(InputType::START);
addScoreToScoreBoard(player);