fix: el jugador sempre s'inicialitzava en el stat "playing" en lloc de "waiting", per tant, sempre jugaven tots els jugadors
This commit is contained in:
@@ -18,11 +18,9 @@ Player::Player(float x, int y, std::vector<Texture *> texture, std::vector<std::
|
|||||||
powerSprite->setPosY(y - (powerSprite->getHeight() - playerSprite->getHeight()));
|
powerSprite->setPosY(y - (powerSprite->getHeight() - playerSprite->getHeight()));
|
||||||
|
|
||||||
// Inicializa variables
|
// Inicializa variables
|
||||||
// enabled = false;
|
|
||||||
statusPlaying = PLAYER_STATUS_WAITING;
|
statusPlaying = PLAYER_STATUS_WAITING;
|
||||||
scoreBoardPanel = 0;
|
scoreBoardPanel = 0;
|
||||||
name = "";
|
name = "";
|
||||||
init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|||||||
Reference in New Issue
Block a user