Trabajando en la sección EnterID

This commit is contained in:
2022-11-23 09:54:08 +01:00
parent c955543d31
commit c71adfbac4
12 changed files with 332 additions and 21 deletions

View File

@@ -87,7 +87,6 @@ void Logo::checkEventHandler()
switch (eventHandler->key.keysym.scancode)
{
case SDL_SCANCODE_ESCAPE:
// std::cout << "PULSADO ESCAPE" << std::endl;
section.name = SECTION_PROG_QUIT;
break;
@@ -270,7 +269,13 @@ void Logo::update()
// Comprueba si ha terminado el logo
if (counter == endLogo + postLogo)
{
if (section.subsection == SUBSECTION_LOGO_TO_INTRO)
if (options->online.jailerID == "")
{
section.name = SECTION_PROG_ENTER_ID;
section.subsection = 0;
}
else if (section.subsection == SUBSECTION_LOGO_TO_INTRO)
{
section.name = SECTION_PROG_INTRO;
section.subsection = 0;