diff --git a/source/game.cpp b/source/game.cpp index 781a73d..07a13d5 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -218,7 +218,7 @@ void Game::init(int playerID) // Añade 0, 1 o 2 cafes al jugador for (int i = 0; i < rand() % 3; ++i) { - //player->giveExtraHit(); + player->giveExtraHit(); } // Empieza sin inmunidad @@ -1812,15 +1812,18 @@ void Game::killPlayer(Player *player) } else { // Si no tiene cafes, muere - JA_PauseMusic(); + if (!demo.enabled) + { + JA_PauseMusic(); + } stopAllBalloons(10); JA_PlaySound(playerCollisionSound); screen->shake(); JA_PlaySound(coffeeOutSound); player->setAlive(false); - allPlayersAreDead() ? JA_StopMusic() : JA_ResumeMusic(); if (!demo.enabled) - { + { // En el modo DEMO ni se para la musica ni se añade la puntuación a la tabla + allPlayersAreDead() ? JA_StopMusic() : JA_ResumeMusic(); addScoreToScoreBoard("Sergio", player->getScore()); } }