Commit 142b42e0 authored by Michael Callahan's avatar Michael Callahan
Browse files

Reset Always reveal top card when starting a new game.

parent f5293579
......@@ -2225,6 +2225,13 @@ qreal Player::getMinimumWidth() const
return result;
}
void Player::setGameStarted()
{
if (local)
aAlwaysRevealTopCard->setChecked(false);
setConceded(false);
}
void Player::setConceded(bool _conceded)
{
conceded = _conceded;
......
......@@ -286,6 +286,8 @@ public:
void setConceded(bool _conceded);
bool getConceded() const { return conceded; }
void setGameStarted();
qreal getMinimumWidth() const;
void setMirrored(bool _mirrored);
......
......@@ -872,7 +872,7 @@ void TabGame::startGame(bool resuming)
if (!resuming) {
QMapIterator<int, Player *> playerIterator(players);
while (playerIterator.hasNext())
playerIterator.next().value()->setConceded(false);
playerIterator.next().value()->setGameStarted();
}
playerListWidget->setGameStarted(true, resuming);
......
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