Ahora aparecen objetos en el modo demo
This commit is contained in:
1 parent
c58f2213d5
commit
ad170e8e0e
2 files changed
+5
-5
No files matched your search
+3
-2
@@ -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)
|
||||
{
|
||||
|
||||
+2
-3
@@ -511,10 +511,9 @@ bool Player::hasExtraHit()
|
||||
void Player::giveExtraHit()
|
||||
{
|
||||
extraHit = true;
|
||||
coffees++;
|
||||
if (coffees > 2)
|
||||
if (coffees < 2)
|
||||
{
|
||||
coffees = 2;
|
||||
coffees++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user