diff --git a/source/credits.cpp b/source/credits.cpp index d55ae68..9f42bbb 100644 --- a/source/credits.cpp +++ b/source/credits.cpp @@ -104,13 +104,10 @@ void Credits::checkEventHandler() section.name = SECTION_PROG_QUIT; break; - case SDL_SCANCODE_RETURN: + default: section.name = SECTION_PROG_TITLE; section.subsection = 0; break; - - default: - break; } } } @@ -227,8 +224,8 @@ void Credits::render() SDL_Rect rect = {0, offset * 2, 256, 192}; SDL_RenderCopy(renderer, coverTexture, nullptr, &rect); - //text->write(0,0,std::to_string(counter)); - //text->write(0,8,std::to_string(counterEnabled)); + // text->write(0,0,std::to_string(counter)); + // text->write(0,8,std::to_string(counterEnabled)); // Vuelca el contenido del renderizador en pantalla screen->blit(); diff --git a/source/director.cpp b/source/director.cpp index d2c2835..9ee6a03 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -9,7 +9,7 @@ Director::Director(std::string path) section.name = SECTION_PROG_LOGO; section.subsection = SUBSECTION_LOGO_TO_INTRO; - //section.name = SECTION_PROG_GAME; + section.name = SECTION_PROG_GAME; // Crea el objeto que controla los ficheros de recursos asset = new Asset(path.substr(0, path.find_last_of("\\/")));