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
|
// Incrementa la puntuación del jugador
|
||||||
void Player::addScore(Uint32 score)
|
void Player::addScore(Uint32 score)
|
||||||
{
|
{
|
||||||
this->score += score;
|
if (enabled && alive)
|
||||||
|
{
|
||||||
|
this->score += score;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Obtiene el valor de la variable
|
// Obtiene el valor de la variable
|
||||||
@@ -498,7 +501,7 @@ void Player::updatePowerUpCounter()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
powerUp = false;
|
powerUp = false;
|
||||||
//powerUpCounter = PLAYER_POWERUP_COUNTER;
|
// powerUpCounter = PLAYER_POWERUP_COUNTER;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user