mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-22 23:26:14 -08:00
don't broadcast user avatar along with game list updates
This commit is contained in:
@@ -398,17 +398,17 @@ void Server_Game::sendGameEventToPlayer(Server_Player *player, GameEvent *event)
|
|||||||
ServerInfo_Game *Server_Game::getInfo() const
|
ServerInfo_Game *Server_Game::getInfo() const
|
||||||
{
|
{
|
||||||
if (players.isEmpty())
|
if (players.isEmpty())
|
||||||
// Game is open
|
// Game is closing
|
||||||
return new ServerInfo_Game(getGameId(), QString(), false, 0, getMaxPlayers(), 0, false, 0);
|
return new ServerInfo_Game(getGameId(), QString(), false, 0, getMaxPlayers(), 0, false, 0);
|
||||||
else
|
else
|
||||||
// Game is closing
|
// Game is open
|
||||||
return new ServerInfo_Game(
|
return new ServerInfo_Game(
|
||||||
getGameId(),
|
getGameId(),
|
||||||
getDescription(),
|
getDescription(),
|
||||||
!getPassword().isEmpty(),
|
!getPassword().isEmpty(),
|
||||||
getPlayerCount(),
|
getPlayerCount(),
|
||||||
getMaxPlayers(),
|
getMaxPlayers(),
|
||||||
new ServerInfo_User(getCreatorInfo()),
|
new ServerInfo_User(getCreatorInfo(), false),
|
||||||
getSpectatorsAllowed(),
|
getSpectatorsAllowed(),
|
||||||
getSpectatorsNeedPassword(),
|
getSpectatorsNeedPassword(),
|
||||||
getSpectatorCount()
|
getSpectatorCount()
|
||||||
|
|||||||
Reference in New Issue
Block a user