minor server fix

This commit is contained in:
unknown 2011-09-16 15:09:59 +02:00
parent 742a10cc1f
commit 8344920fdc
2 changed files with 5 additions and 1 deletions

View file

@ -5,7 +5,7 @@ INCLUDEPATH += . src ../common
MOC_DIR = build
OBJECTS_DIR = build
RESOURCES = cockatrice.qrc
QT += network script svg
QT += network script svg multimedia
CONFIG += mobility
MOBILITY = multimedia

View file

@ -140,6 +140,10 @@ void Server_Game::doStartGameIfReady()
Server_Player *player = playerIterator.next().value();
player->setConceded(false);
player->setReadyStart(false);
}
playerIterator.toFront();
while (playerIterator.hasNext()) {
Server_Player *player = playerIterator.next().value();
sendGameEventToPlayer(player, new Event_GameStateChanged(gameStarted, 0, 0, getGameState(player)));
}