Corregidos un par de warnings peligrosos
This commit is contained in:
@@ -430,7 +430,10 @@ void Balloon::move()
|
|||||||
|
|
||||||
// Aplica la gravedad al objeto sin pasarse de una velocidad máxima
|
// Aplica la gravedad al objeto sin pasarse de una velocidad máxima
|
||||||
velY += gravity;
|
velY += gravity;
|
||||||
std::min(velY, maxVelY);
|
|
||||||
|
// Al parecer esta asignación se quedó sin hacer y ahora el juego no funciona
|
||||||
|
// correctamente si se aplica, así que se deja sin efecto
|
||||||
|
// velY = std::min(velY, maxVelY);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actualiza la posición del sprite
|
// Actualiza la posición del sprite
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ HiScoreTable::HiScoreTable(SDL_Renderer *renderer, Screen *screen, Asset *asset,
|
|||||||
this->input = input;
|
this->input = input;
|
||||||
this->lang = lang;
|
this->lang = lang;
|
||||||
this->section = section;
|
this->section = section;
|
||||||
|
this->options = options;
|
||||||
|
|
||||||
// Reserva memoria para los punteros
|
// Reserva memoria para los punteros
|
||||||
eventHandler = new SDL_Event();
|
eventHandler = new SDL_Event();
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ private:
|
|||||||
Input *input; // Objeto pata gestionar la entrada
|
Input *input; // Objeto pata gestionar la entrada
|
||||||
Lang *lang; // Objeto para gestionar los textos en diferentes idiomas
|
Lang *lang; // Objeto para gestionar los textos en diferentes idiomas
|
||||||
Text *text; // Objeto para escribir texto
|
Text *text; // Objeto para escribir texto
|
||||||
options_t *options; // Opciones y parametyros del programa
|
options_t *options; // Opciones y parametros del programa
|
||||||
section_t *section; // Estado del bucle principal para saber si continua o se sale
|
section_t *section; // Estado del bucle principal para saber si continua o se sale
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
|
|||||||
Reference in New Issue
Block a user