summaryrefslogtreecommitdiff
path: root/noncore/games/solitaire/cardpile.cpp
Unidiff
Diffstat (limited to 'noncore/games/solitaire/cardpile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/solitaire/cardpile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/games/solitaire/cardpile.cpp b/noncore/games/solitaire/cardpile.cpp
index 0b738d2..3b15e93 100644
--- a/noncore/games/solitaire/cardpile.cpp
+++ b/noncore/games/solitaire/cardpile.cpp
@@ -99,13 +99,13 @@ void CardPile::writeConfig( Config& cfg, QString name ) {
99 int numberOfCards = 0; 99 int numberOfCards = 0;
100 cfg.setGroup( name ); 100 cfg.setGroup( name );
101 Card *card = cardOnBottom(); 101 Card *card = cardOnBottom();
102 while ( card ) { 102 while ( card ) {
103 QString cardStr; 103 QString cardStr;
104 cardStr.sprintf( "%i", numberOfCards ); 104 cardStr.sprintf( "%i", numberOfCards );
105 int val = (int)card->getValue() - 1 + ( (int)card->getSuit() - 1 ) * 13; 105 int val = (int)card->getValue()-1 + ((int)card->getSuit()-1)*13 + (int)card->getDeckNumber()*52;
106 cfg.writeEntry( "Card" + cardStr, val ); 106 cfg.writeEntry( "Card" + cardStr, val );
107 cfg.writeEntry( "CardFacing" + cardStr, card->isFacing() ); 107 cfg.writeEntry( "CardFacing" + cardStr, card->isFacing() );
108 card = cardInfront( card ); 108 card = cardInfront( card );
109 numberOfCards++; 109 numberOfCards++;
110 } 110 }
111 cfg.writeEntry("NumberOfCards", numberOfCards); 111 cfg.writeEntry("NumberOfCards", numberOfCards);