fix: coger una segunda máquina de café mientras se tenía ya una no hacía nada
This commit is contained in:
@@ -2094,7 +2094,7 @@ void Game::checkPlayerItemCollision(Player *player)
|
||||
break;
|
||||
|
||||
case ITEM_COFFEE_MACHINE:
|
||||
player->setPowerUp(true);
|
||||
player->setPowerUp();
|
||||
JA_PlaySound(itemPickUpSound);
|
||||
coffeeMachineEnabled = false;
|
||||
break;
|
||||
|
||||
@@ -470,9 +470,10 @@ bool Player::isPowerUp()
|
||||
}
|
||||
|
||||
// Establece el valor de la variable
|
||||
void Player::setPowerUp(bool value)
|
||||
void Player::setPowerUp()
|
||||
{
|
||||
powerUp = value;
|
||||
powerUp = true;
|
||||
powerUpCounter = PLAYER_POWERUP_COUNTER;
|
||||
}
|
||||
|
||||
// Obtiene el valor de la variable
|
||||
|
||||
@@ -175,8 +175,8 @@ public:
|
||||
// Obtiene el valor de la variable
|
||||
bool isPowerUp();
|
||||
|
||||
// Establece el valor de la variable
|
||||
void setPowerUp(bool value);
|
||||
// Establece el valor de la variable a verdadero
|
||||
void setPowerUp();
|
||||
|
||||
// Obtiene el valor de la variable
|
||||
Uint16 getPowerUpCounter();
|
||||
|
||||
Reference in New Issue
Block a user