From 8c425f569803b99629f4fc161bc90b68c91c6704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Wed, 23 Nov 2022 22:22:32 +0100 Subject: [PATCH] Fix: De enter_id iba siempre a intro --- source/enter_id.cpp | 2 +- source/logo.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/source/enter_id.cpp b/source/enter_id.cpp index 695f7bb..59227d2 100644 --- a/source/enter_id.cpp +++ b/source/enter_id.cpp @@ -36,11 +36,11 @@ EnterID::EnterID(SDL_Renderer *renderer, Screen *screen, Asset *asset, options_t pos = 0; name[pos] = 0; maxLenght = 15; + this->section.subsection = section.subsection; if (options->online.enabled && options->online.jailerID == "") { this->section.name = SECTION_PROG_ENTER_ID; - this->section.subsection = section.subsection; } else { diff --git a/source/logo.cpp b/source/logo.cpp index a3fc196..bd5805f 100644 --- a/source/logo.cpp +++ b/source/logo.cpp @@ -39,6 +39,17 @@ Logo::Logo(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *as counter = 0; section.name = SECTION_PROG_LOGO; section.subsection = subsection; + + if (section.subsection == SUBSECTION_LOGO_TO_INTRO) + { + std::cout << "SUBSECTION_LOGO_TO_INTRO" << std::endl; + } + else + { + std::cout << "SUBSECTION_LOGO_TO_TITLE" << std::endl; + } + + ticks = 0; ticksSpeed = 15; initFade = 300;