mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-22 08:45:06 -05:00
some minor bug fixes; disallow deck storage commands to unauthenticated users
This commit is contained in:
@@ -146,7 +146,6 @@ void Server_Game::stopGameIfFinished()
|
||||
Server_Player *player = playerIterator.next().value();
|
||||
player->sendProtocolItem(new Event_GameStateChanged(gameId, gameStarted, -1, -1, getGameState(player)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ResponseCode Server_Game::checkJoin(const QString &_password, bool spectator)
|
||||
@@ -185,6 +184,8 @@ void Server_Game::removePlayer(Server_Player *player)
|
||||
|
||||
if (!getPlayerCount())
|
||||
deleteLater();
|
||||
else
|
||||
stopGameIfFinished();
|
||||
qobject_cast<Server *>(parent())->broadcastGameListUpdate(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user