mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
ENSURE they are.
Took 8 minutes
This commit is contained in:
parent
65a492aeb9
commit
9b14d9577b
1 changed files with 2 additions and 1 deletions
|
|
@ -34,7 +34,8 @@ Player *PlayerManager::getActiveLocalPlayer(int activePlayer) const
|
|||
|
||||
Player *PlayerManager::addPlayer(int playerId, const ServerInfo_User &info)
|
||||
{
|
||||
auto *newPlayer = new Player(info, playerId, isLocalPlayer(playerId), isJudge(), getGame());
|
||||
auto *newPlayer = new Player(info, playerId, isLocalPlayer(playerId) || game->getGameState()->getIsLocalGame(),
|
||||
isJudge(), getGame());
|
||||
connect(newPlayer, &Player::concededChanged, this, &PlayerManager::playerConceded);
|
||||
players.insert(playerId, newPlayer);
|
||||
emit playerAdded(newPlayer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue