diff --git a/data/sound/service_menu_adjust.wav b/data/sound/service_menu_adjust.wav index 7279754..2235028 100644 Binary files a/data/sound/service_menu_adjust.wav and b/data/sound/service_menu_adjust.wav differ diff --git a/data/sound/service_menu_move.wav b/data/sound/service_menu_move.wav index 1ca933c..a1b45ae 100644 Binary files a/data/sound/service_menu_move.wav and b/data/sound/service_menu_move.wav differ diff --git a/source/director.cpp b/source/director.cpp index 75709ca..d588f8d 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -594,9 +594,9 @@ void Director::runHiScoreTable() // Ejecuta el juego en modo demo void Director::runDemoGame() { - const auto player_id = (rand() % 2) + 1; - constexpr auto current_stage = 0; - auto game = std::make_unique(player_id, current_stage, GAME_MODE_DEMO_ON); + const auto PLAYER_ID = (rand() % 2) + 1; + constexpr auto CURRENT_STAGE = 0; + auto game = std::make_unique(PLAYER_ID, CURRENT_STAGE, GAME_MODE_DEMO_ON); game->run(); } diff --git a/source/sections/game.cpp b/source/sections/game.cpp index 5bab735..888e6c3 100644 --- a/source/sections/game.cpp +++ b/source/sections/game.cpp @@ -102,7 +102,7 @@ Game::~Game() // [Modo DEMO] Vuelve a activar los sonidos if (demo_.enabled) { - Audio::get()->enableSound(); + //Audio::get()->enableSound(); } else { @@ -1652,7 +1652,7 @@ void Game::initDemo(int player_id) } // Deshabilita los sonidos - Audio::get()->disableSound(); + //Audio::get()->disableSound(); // Configura los marcadores scoreboard_->setMode(SCOREBOARD_LEFT_PANEL, ScoreboardMode::DEMO); diff --git a/source/ui/service_menu.cpp b/source/ui/service_menu.cpp index acc0443..b0aca5a 100644 --- a/source/ui/service_menu.cpp +++ b/source/ui/service_menu.cpp @@ -30,6 +30,7 @@ ServiceMenu::ServiceMenu() void ServiceMenu::toggle() { + playBackSound(); enabled_ = !enabled_; if (!enabled_) { @@ -130,6 +131,7 @@ void ServiceMenu::selectOption() void ServiceMenu::moveBack() { + playBackSound(); if (current_settings_group_ == SettingsGroup::MAIN) { enabled_ = false; @@ -138,7 +140,6 @@ void ServiceMenu::moveBack() current_settings_group_ = previous_settings_group_; selected_ = (current_settings_group_ == SettingsGroup::MAIN) ? main_menu_selected_ : 0; updateMenu(); - playBackSound(); } // --- Lógica Interna ---