mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
server bugfix
This commit is contained in:
parent
d54d9f0d85
commit
dff26376fd
2 changed files with 5 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ ServerGame::~ServerGame()
|
|||
QString ServerGame::getGameListLine() const
|
||||
{
|
||||
if (players.isEmpty())
|
||||
return QString("list_games|%1|||0|%2||0").arg(gameId).arg(maxPlayers);
|
||||
return QString("list_games|%1|||0|%2||0|0").arg(gameId).arg(maxPlayers);
|
||||
else {
|
||||
QString creatorName = creator ? creator->getPlayerName() : QString();
|
||||
return QString("list_games|%1|%2|%3|%4|%5|%6|%7|%8").arg(gameId)
|
||||
|
|
@ -158,8 +158,7 @@ void ServerGame::removePlayer(ServerSocket *player)
|
|||
|
||||
if (!players.size())
|
||||
deleteLater();
|
||||
if (!gameStarted)
|
||||
qobject_cast<Server *>(parent())->broadcastGameListUpdate(this);
|
||||
qobject_cast<Server *>(parent())->broadcastGameListUpdate(this);
|
||||
}
|
||||
|
||||
void ServerGame::setActivePlayer(int _activePlayer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue