fix: coger una segunda máquina de café mientras se tenía ya una no hacía nada

This commit is contained in:
2024-07-08 12:44:47 +02:00
parent f9a6478a4b
commit 38272db851
3 changed files with 6 additions and 5 deletions

View File

@@ -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