author | tille <tille> | 2002-06-28 14:56:10 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-28 14:56:10 (UTC) |
commit | ab413257c3a23f535e99f8f61468382c73bc4adb (patch) (side-by-side diff) | |
tree | 63834da1738157e52b67550d4e71058c6710f1ff /noncore/games/solitaire/canvascardgame.cpp | |
parent | d4626cc76127b7022c8555ea11afbb289714c851 (diff) | |
download | opie-ab413257c3a23f535e99f8f61468382c73bc4adb.zip opie-ab413257c3a23f535e99f8f61468382c73bc4adb.tar.gz opie-ab413257c3a23f535e99f8f61468382c73bc4adb.tar.bz2 |
cmader <chris@mediakreativwerk.de> impl. 2 new games
Diffstat (limited to 'noncore/games/solitaire/canvascardgame.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/solitaire/canvascardgame.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/games/solitaire/canvascardgame.cpp b/noncore/games/solitaire/canvascardgame.cpp index ef35287..357e798 100644 --- a/noncore/games/solitaire/canvascardgame.cpp +++ b/noncore/games/solitaire/canvascardgame.cpp @@ -367,4 +367,5 @@ void CanvasCardGame::readPile( Config& cfg, CardPile *pile, QString name, int& h int numberOfCards = cfg.readNumEntry("NumberOfCards", 0); Card *card = NULL; + for ( int i = 0; i < numberOfCards; i++ ) { QString cardStr; @@ -372,5 +373,6 @@ void CanvasCardGame::readPile( Config& cfg, CardPile *pile, QString name, int& h int val = cfg.readNumEntry( "Card" + cardStr ); bool facing = cfg.readBoolEntry( "CardFacing" + cardStr ); - card = cards[ val ]; + + card = cards[ val ]; card->setFace(facing); pile->addCardToTop(card); |