bug fixes

This commit is contained in:
2021-08-31 17:09:30 +02:00
parent ad5fb0fc22
commit 87aeaab6b8
2 changed files with 8 additions and 5 deletions

View File

@@ -2334,10 +2334,10 @@ void Game::resetItems()
// Devuelve un item en función del azar
Uint8 Game::dropItem()
{
if (mPlayer[0]->isPowerUp() || (mCoffeeMachineEnabled))
return NO_KIND;
else
return ITEM_COFFEE_MACHINE;
//if (mPlayer[0]->isPowerUp() || (mCoffeeMachineEnabled))
// return NO_KIND;
//else
// return ITEM_COFFEE_MACHINE;
const Uint8 luckyNumber = rand() % 100;
const Uint8 item = rand() % 6;
@@ -3271,6 +3271,9 @@ void Game::runPausedGame()
// Bucle para la pantalla de game over
void Game::runGameOverScreen()
{
// Guarda los puntos
saveScoreFile();
// Reinicia el menu
mMenuGameOver->reset();