server: fixed spectator count not being updated

This commit is contained in:
Max-Wilhelm Bruker 2012-06-25 13:07:26 +02:00
parent 593be45d94
commit e7b58c4d8e

View file

@ -409,6 +409,7 @@ void Server_Game::addPlayer(Server_AbstractUserInterface *userInterface, Respons
gameInfo.set_room_id(room->getId());
gameInfo.set_game_id(gameId);
gameInfo.set_player_count(getPlayerCount());
gameInfo.set_spectators_count(getSpectatorCount());
emit gameInfoChanged(gameInfo);
}
@ -464,6 +465,7 @@ void Server_Game::removePlayer(Server_Player *player)
gameInfo.set_room_id(room->getId());
gameInfo.set_game_id(gameId);
gameInfo.set_player_count(getPlayerCount());
gameInfo.set_spectators_count(getSpectatorCount());
emit gameInfoChanged(gameInfo);
}