Merge pull request #520 from mcallahan/always-reveal-top-master-master
Reset Always reveal top card when starting a new game.
This commit is contained in:
commit
c98a146746
3 changed files with 10 additions and 1 deletions
|
@ -2225,6 +2225,13 @@ qreal Player::getMinimumWidth() const
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Player::setGameStarted()
|
||||||
|
{
|
||||||
|
if (local)
|
||||||
|
aAlwaysRevealTopCard->setChecked(false);
|
||||||
|
setConceded(false);
|
||||||
|
}
|
||||||
|
|
||||||
void Player::setConceded(bool _conceded)
|
void Player::setConceded(bool _conceded)
|
||||||
{
|
{
|
||||||
conceded = _conceded;
|
conceded = _conceded;
|
||||||
|
|
|
@ -286,6 +286,8 @@ public:
|
||||||
|
|
||||||
void setConceded(bool _conceded);
|
void setConceded(bool _conceded);
|
||||||
bool getConceded() const { return conceded; }
|
bool getConceded() const { return conceded; }
|
||||||
|
|
||||||
|
void setGameStarted();
|
||||||
|
|
||||||
qreal getMinimumWidth() const;
|
qreal getMinimumWidth() const;
|
||||||
void setMirrored(bool _mirrored);
|
void setMirrored(bool _mirrored);
|
||||||
|
|
|
@ -872,7 +872,7 @@ void TabGame::startGame(bool resuming)
|
||||||
if (!resuming) {
|
if (!resuming) {
|
||||||
QMapIterator<int, Player *> playerIterator(players);
|
QMapIterator<int, Player *> playerIterator(players);
|
||||||
while (playerIterator.hasNext())
|
while (playerIterator.hasNext())
|
||||||
playerIterator.next().value()->setConceded(false);
|
playerIterator.next().value()->setGameStarted();
|
||||||
}
|
}
|
||||||
|
|
||||||
playerListWidget->setGameStarted(true, resuming);
|
playerListWidget->setGameStarted(true, resuming);
|
||||||
|
|
Loading…
Reference in a new issue