Fix: la variable showCheevos no se inicializaba correctamente

This commit is contained in:
2023-09-17 17:09:43 +02:00
parent cce0ccba76
commit a07eeff6e4
2 changed files with 8 additions and 8 deletions

View File

@@ -1222,7 +1222,6 @@ void Director::initInput()
input->bindKey(input_right, SDL_SCANCODE_RIGHT);
input->bindKey(input_up, SDL_SCANCODE_UP);
input->bindKey(input_down, SDL_SCANCODE_DOWN);
}
else if (options->keys == ctrl_opqa)
{
@@ -1329,14 +1328,14 @@ bool Director::initSDL()
else
{
// Crea un renderizador para la ventana. El vsync se activa en funcion de las opciones
//Uint32 flags = SDL_RENDERER_SOFTWARE;
//Uint32 flags = SDL_RENDERER_ACCELERATED;
Uint32 flags = 0;
if (options->vSync)
{
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
}
else
{
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
}
{
flags = flags | SDL_RENDERER_PRESENTVSYNC;
}
renderer = SDL_CreateRenderer(window, -1, flags);
if (renderer == nullptr)
{

View File

@@ -35,6 +35,7 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Resource *resource, Asset *
ticksSpeed = 15;
marqueeSpeed = 3;
initMarquee();
showCheevos = false;
// Crea el cartel de PRESS ENTER
#ifdef GAME_CONSOLE