mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
more ISL code, mutex fixes
This commit is contained in:
parent
0ae18d7b2e
commit
572e4eaafa
9 changed files with 107 additions and 48 deletions
|
|
@ -271,7 +271,7 @@ void Server_Game::doStartGameIfReady()
|
|||
nextTurn();
|
||||
|
||||
locker.unlock();
|
||||
room->broadcastGameListUpdate(this);
|
||||
emit gameInfoChanged(getInfo());
|
||||
}
|
||||
|
||||
void Server_Game::startGameIfReady()
|
||||
|
|
@ -364,7 +364,7 @@ Server_Player *Server_Game::addPlayer(Server_ProtocolHandler *handler, bool spec
|
|||
}
|
||||
|
||||
if (broadcastUpdate)
|
||||
room->broadcastGameListUpdate(this);
|
||||
emit gameInfoChanged(getInfo());
|
||||
|
||||
return newPlayer;
|
||||
}
|
||||
|
|
@ -409,7 +409,7 @@ void Server_Game::removePlayer(Server_Player *player)
|
|||
if (gameStarted && playerActive)
|
||||
nextTurn();
|
||||
}
|
||||
room->broadcastGameListUpdate(this);
|
||||
emit gameInfoChanged(getInfo());
|
||||
}
|
||||
|
||||
void Server_Game::removeArrowsToPlayer(GameEventStorage &ges, Server_Player *player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue