mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-24 20:10:02 -08:00
minor server fix
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user