Commit 75bac4a5 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

fixed gameStateKnown bug

parent 767d53b5
...@@ -101,7 +101,7 @@ void PlayerListWidget::updatePlayerProperties(const ServerInfo_PlayerProperties ...@@ -101,7 +101,7 @@ void PlayerListWidget::updatePlayerProperties(const ServerInfo_PlayerProperties
player->setData(2, Qt::UserRole, prop.conceded()); player->setData(2, Qt::UserRole, prop.conceded());
if (prop.has_ready_start()) if (prop.has_ready_start())
player->setData(2, Qt::UserRole + 1, prop.ready_start()); player->setData(2, Qt::UserRole + 1, prop.ready_start());
if (prop.has_conceded() && prop.has_ready_start()) if (prop.has_conceded() || prop.has_ready_start())
player->setIcon(2, gameStarted ? (prop.conceded() ? concededIcon : QIcon()) : (prop.ready_start() ? readyIcon : notReadyIcon)); player->setIcon(2, gameStarted ? (prop.conceded() ? concededIcon : QIcon()) : (prop.ready_start() ? readyIcon : notReadyIcon));
if (prop.has_user_info()) { if (prop.has_user_info()) {
player->setData(3, Qt::UserRole, prop.user_info().user_level()); player->setData(3, Qt::UserRole, prop.user_info().user_level());
......
...@@ -384,7 +384,7 @@ TabGame::TabGame(TabSupervisor *_tabSupervisor, QList<AbstractClient *> &_client ...@@ -384,7 +384,7 @@ TabGame::TabGame(TabSupervisor *_tabSupervisor, QList<AbstractClient *> &_client
hostId(event.host_id()), hostId(event.host_id()),
localPlayerId(event.player_id()), localPlayerId(event.player_id()),
spectator(event.spectator()), spectator(event.spectator()),
gameStateKnown(true), gameStateKnown(false),
resuming(event.resuming()), resuming(event.resuming()),
currentPhase(-1), currentPhase(-1),
activeCard(0), activeCard(0),
......
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