Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
2c50cce6
Commit
2c50cce6
authored
Jan 25, 2011
by
Max-Wilhelm Bruker
Browse files
don't broadcast user avatar along with game list updates
parent
92e842bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_game.cpp
View file @
2c50cce6
...
...
@@ -398,17 +398,17 @@ void Server_Game::sendGameEventToPlayer(Server_Player *player, GameEvent *event)
ServerInfo_Game
*
Server_Game
::
getInfo
()
const
{
if
(
players
.
isEmpty
())
// Game is
open
// Game is
closing
return
new
ServerInfo_Game
(
getGameId
(),
QString
(),
false
,
0
,
getMaxPlayers
(),
0
,
false
,
0
);
else
// Game is
closing
// Game is
open
return
new
ServerInfo_Game
(
getGameId
(),
getDescription
(),
!
getPassword
().
isEmpty
(),
getPlayerCount
(),
getMaxPlayers
(),
new
ServerInfo_User
(
getCreatorInfo
()),
new
ServerInfo_User
(
getCreatorInfo
()
,
false
),
getSpectatorsAllowed
(),
getSpectatorsNeedPassword
(),
getSpectatorCount
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment