fix: la bola que explota totes les boles dona punts a tots els jugadors... pero també donava als que no estaven jugant
This commit is contained in:
@@ -356,7 +356,10 @@ void Player::setScore(Uint32 score)
|
||||
// Incrementa la puntuación del jugador
|
||||
void Player::addScore(Uint32 score)
|
||||
{
|
||||
if (enabled && alive)
|
||||
{
|
||||
this->score += score;
|
||||
}
|
||||
}
|
||||
|
||||
// Obtiene el valor de la variable
|
||||
@@ -498,7 +501,7 @@ void Player::updatePowerUpCounter()
|
||||
else
|
||||
{
|
||||
powerUp = false;
|
||||
//powerUpCounter = PLAYER_POWERUP_COUNTER;
|
||||
// powerUpCounter = PLAYER_POWERUP_COUNTER;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user