mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Save an indent level.
Took 43 seconds
This commit is contained in:
parent
3e383e2d36
commit
2edcba290f
1 changed files with 8 additions and 9 deletions
|
|
@ -909,10 +909,10 @@ void TabGame::eventGameStateChanged(const Event_GameStateChanged &event,
|
||||||
playerListWidget->addPlayer(prop);
|
playerListWidget->addPlayer(prop);
|
||||||
}
|
}
|
||||||
player->processPlayerInfo(playerInfo);
|
player->processPlayerInfo(playerInfo);
|
||||||
if (player->getLocal()) {
|
if (player->getLocal() || !gameInfo.share_decklists_on_load()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (gameInfo.share_decklists_on_load()) {
|
|
||||||
DeckList loader;
|
DeckList loader;
|
||||||
loader.loadFromString_Native(QString::fromStdString(playerInfo.deck_list()));
|
loader.loadFromString_Native(QString::fromStdString(playerInfo.deck_list()));
|
||||||
QMapIterator<int, TabbedDeckViewContainer *> i(deckViewContainers);
|
QMapIterator<int, TabbedDeckViewContainer *> i(deckViewContainers);
|
||||||
|
|
@ -922,7 +922,6 @@ void TabGame::eventGameStateChanged(const Event_GameStateChanged &event,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
for (int i = 0; i < playerListSize; ++i) {
|
for (int i = 0; i < playerListSize; ++i) {
|
||||||
const ServerInfo_Player &playerInfo = event.player_list(i);
|
const ServerInfo_Player &playerInfo = event.player_list(i);
|
||||||
const ServerInfo_PlayerProperties &prop = playerInfo.properties();
|
const ServerInfo_PlayerProperties &prop = playerInfo.properties();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue