From ad170e8e0ede351123d3c6fa2ccc7f07927429f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Fri, 5 Jul 2024 22:57:00 +0200 Subject: [PATCH] Ahora aparecen objetos en el modo demo --- source/game.cpp | 5 +++-- source/player.cpp | 5 ++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/game.cpp b/source/game.cpp index e015004..e0252fd 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -1539,7 +1539,7 @@ void Game::updatePlayers() { killPlayer(player); - if (demo.enabled) + if (demo.enabled && !player->isAlive()) { section->name = SECTION_PROG_HI_SCORE_TABLE; } @@ -2129,7 +2129,8 @@ void Game::checkBulletBalloonCollision() // Suelta el item en caso de que salga uno const Uint8 droppeditem = dropItem(); - if ((droppeditem != NO_KIND) && !(demo.enabled) && !(demo.recording)) + //if ((droppeditem != NO_KIND) && !(demo.enabled) && !(demo.recording)) + if ((droppeditem != NO_KIND) && !(demo.recording)) { if (droppeditem != ITEM_COFFEE_MACHINE) { diff --git a/source/player.cpp b/source/player.cpp index 98a6675..b93dc44 100644 --- a/source/player.cpp +++ b/source/player.cpp @@ -511,10 +511,9 @@ bool Player::hasExtraHit() void Player::giveExtraHit() { extraHit = true; - coffees++; - if (coffees > 2) + if (coffees < 2) { - coffees = 2; + coffees++; } }