Commit 8344920f authored by unknown's avatar unknown
Browse files

minor server fix

parent 742a10cc
......@@ -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
......
......@@ -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)));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment