From dafba0648f094cb4b68da86e606698abad0f3c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Thu, 26 Aug 2021 22:44:19 +0200 Subject: [PATCH] bug fix --- source/director.cpp | 2 +- source/game.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/director.cpp b/source/director.cpp index edd8fd8..3c42670 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -74,7 +74,7 @@ void Director::init() } // Sección - mSection.name = PROG_SECTION_GAME; + mSection.name = PROG_SECTION_LOGO; mSection.subsection = 0; // Textos diff --git a/source/game.cpp b/source/game.cpp index b8885ce..a7caf0f 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -1559,7 +1559,7 @@ std::string Game::updateScoreText(Uint32 num) // Pinta el marcador en pantalla usando un objeto texto void Game::renderScoreBoard() { - color_t color = {0, 0, 0}; + //color_t color = {0, 0, 0}; // Si el jugador esta muerto, no pintes el fondo del marcador, así que pase por encima cuando sale despedido //if (mPlayer[0]->isAlive()) @@ -1595,7 +1595,7 @@ void Game::renderScoreBoard() const int offset1 = 163; const int offset2 = offset1 + 8; const int offset3 = offset2 + 8; - const int offset4 = offset3 + 8; + //const int offset4 = offset3 + 8; // PLAYER1 - SCORE mTextScoreBoard->writeCentered(PLAY_AREA_LEFT + 30, offset1, mTextStrings[53]); mTextScoreBoard->writeCentered(PLAY_AREA_LEFT + 30, offset2, updateScoreText(mPlayer[0]->getScore())); @@ -2269,10 +2269,10 @@ void Game::resetItems() // Devuelve un item en función del azar Uint8 Game::dropItem() { - if (mPlayer[0]->isPowerUp() || (mCoffeeMachineEnabled)) + /*if (mPlayer[0]->isPowerUp() || (mCoffeeMachineEnabled)) return NO_KIND; else - return ITEM_COFFEE_MACHINE; + return ITEM_COFFEE_MACHINE;*/ const Uint8 luckyNumber = rand() % 100; const Uint8 item = rand() % 6;