From 3e94633f56a2b921a63754a12e86589d1d82efe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Thu, 1 Sep 2022 21:22:13 +0200 Subject: [PATCH] Quitados tres warnings --- source/ltexture.cpp | 4 ++-- source/scoreboard.cpp | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/source/ltexture.cpp b/source/ltexture.cpp index c09bcca..702e7ca 100644 --- a/source/ltexture.cpp +++ b/source/ltexture.cpp @@ -103,8 +103,8 @@ bool LTexture::createBlank(SDL_Renderer *renderer, int width, int height, SDL_Te } else { - width = width; - height = height; + this->width = width; + this->height = height; } return texture != NULL; diff --git a/source/scoreboard.cpp b/source/scoreboard.cpp index f19e2d3..5ce2973 100644 --- a/source/scoreboard.cpp +++ b/source/scoreboard.cpp @@ -77,9 +77,6 @@ ScoreBoard::~ScoreBoard() // Pinta el objeto en pantalla void ScoreBoard::render() { - - const int num_lives = 9; - // Dibuja el fondo del marcador const SDL_Rect rect = {0, 17 * BLOCK, PLAY_AREA_WIDTH, GAMECANVAS_HEIGHT - PLAY_AREA_HEIGHT}; SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);