mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
fix: don't show conceded players, fix: compute multicolumn layout correctly when dealing with odd number of players
This commit is contained in:
parent
b001421cfe
commit
3ed26e11ae
4 changed files with 10 additions and 7 deletions
|
|
@ -498,10 +498,6 @@ void TabGame::startGame()
|
|||
}
|
||||
mainLayout->removeItem(deckViewContainerLayout);
|
||||
|
||||
QMapIterator<int, Player *> playerIterator(players);
|
||||
while (playerIterator.hasNext())
|
||||
playerIterator.next().value()->setConceded(false);
|
||||
|
||||
playerListWidget->setGameStarted(true);
|
||||
started = true;
|
||||
static_cast<GameScene *>(gameView->scene())->rearrange();
|
||||
|
|
@ -514,6 +510,10 @@ void TabGame::stopGame()
|
|||
currentPhase = -1;
|
||||
activePlayer = -1;
|
||||
|
||||
QMapIterator<int, Player *> playerIterator(players);
|
||||
while (playerIterator.hasNext())
|
||||
playerIterator.next().value()->setConceded(false);
|
||||
|
||||
QMapIterator<int, DeckViewContainer *> i(deckViewContainers);
|
||||
while (i.hasNext()) {
|
||||
i.next();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue