fix: es podia pulsar per a jugar mentre feia el fade cap a la demo

This commit is contained in:
2025-01-05 14:36:38 +01:00
parent 91c8797d7f
commit 4d590f79f5
2 changed files with 2 additions and 2 deletions

View File

@@ -294,7 +294,7 @@ void Title::checkInput()
if (Input::get()->checkInput(InputType::START, INPUT_DO_NOT_ALLOW_REPEAT, controller.type, controller.index) &&
!Input::get()->checkInput(InputType::SERVICE, INPUT_DO_NOT_ALLOW_REPEAT, controller.type, controller.index))
{
if (state_ == TitleState::LOGO_FINISHED || ALLOW_TITLE_ANIMATION_SKIP)
if ((state_ == TitleState::LOGO_FINISHED || ALLOW_TITLE_ANIMATION_SKIP) && !fade_->isEnabled())
{
JA_PlaySound(Resource::get()->getSound("game_start.wav"));
JA_FadeOutMusic(1500);