minor server fix
This commit is contained in:
parent
742a10cc1f
commit
8344920fdc
2 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@ INCLUDEPATH += . src ../common
|
||||||
MOC_DIR = build
|
MOC_DIR = build
|
||||||
OBJECTS_DIR = build
|
OBJECTS_DIR = build
|
||||||
RESOURCES = cockatrice.qrc
|
RESOURCES = cockatrice.qrc
|
||||||
QT += network script svg
|
QT += network script svg multimedia
|
||||||
CONFIG += mobility
|
CONFIG += mobility
|
||||||
MOBILITY = multimedia
|
MOBILITY = multimedia
|
||||||
|
|
||||||
|
|
|
@ -140,6 +140,10 @@ void Server_Game::doStartGameIfReady()
|
||||||
Server_Player *player = playerIterator.next().value();
|
Server_Player *player = playerIterator.next().value();
|
||||||
player->setConceded(false);
|
player->setConceded(false);
|
||||||
player->setReadyStart(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)));
|
sendGameEventToPlayer(player, new Event_GameStateChanged(gameStarted, 0, 0, getGameState(player)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue