From 284a99e6e912ff7f44b1a91b1922d9b72a96e14e Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 25 Oct 2022 13:11:39 +0200 Subject: [PATCH] =?UTF-8?q?Ya=20sed=20puede=20saltar=20la=20secci=C3=B3n?= =?UTF-8?q?=20de=20credits/instrucciones=20con=20cualquier=20tecla?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/credits.cpp | 9 +++------ source/director.cpp | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) 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("\\/")));