diff --git a/cockatrice/cockatrice.pro b/cockatrice/cockatrice.pro index a68afe69..67cce375 100644 --- a/cockatrice/cockatrice.pro +++ b/cockatrice/cockatrice.pro @@ -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 diff --git a/common/server_game.cpp b/common/server_game.cpp index 41f5525e..ba8eb81c 100644 --- a/common/server_game.cpp +++ b/common/server_game.cpp @@ -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))); }