diff --git a/source/director.cpp b/source/director.cpp index d588f8d..6bf2df6 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -49,7 +49,7 @@ Director::Director(int argc, const char *argv[]) Section::name = Section::Name::GAME; Section::options = Section::Options::GAME_PLAY_1P; #elif DEBUG - Section::name = Section::Name::TITLE; + Section::name = Section::Name::LOGO; Section::options = Section::Options::GAME_PLAY_1P; #else // NORMAL GAME Section::name = Section::Name::LOGO; diff --git a/source/sections/logo.cpp b/source/sections/logo.cpp index 885737d..f514653 100644 --- a/source/sections/logo.cpp +++ b/source/sections/logo.cpp @@ -62,6 +62,7 @@ Logo::~Logo() jail_texture_->setColor(255, 255, 255); since_texture_->setColor(255, 255, 255); Audio::get()->stopAllSounds(); + Audio::get()->stopMusic(); } // Comprueba el manejador de eventos @@ -183,7 +184,6 @@ void Logo::render() // Bucle para el logo del juego void Logo::run() { - Audio::get()->fadeOutMusic(300); while (Section::name == Section::Name::LOGO) { checkInput(); diff --git a/source/sections/title.cpp b/source/sections/title.cpp index 361e1e6..e6068e8 100644 --- a/source/sections/title.cpp +++ b/source/sections/title.cpp @@ -62,6 +62,10 @@ Title::~Title() { Resource::get()->getTexture("smb2.gif")->setPalette(0); Audio::get()->stopAllSounds(); + if (Section::name == Section::Name::LOGO) + { + Audio::get()->fadeOutMusic(300); + } } // Actualiza las variables del objeto