From kde-commits Sat Jan 16 20:32:23 2010 From: Parker Coates Date: Sat, 16 Jan 2010 20:32:23 +0000 To: kde-commits Subject: KDE/kdegames/kpat/patsolve Message-Id: <1263673943.191128.18812.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=126367395322177 SVN commit 1075813 by coates: Fix bug 215136 which caused the Klondike demo to get stuck. The demo mode was getting stuck, because I had prevented moving a single card back from the waste to the stock (since it was pointless), but the solver was still suggesting moves of this type. This brings the solver back into agreement with the DealerScene. BUG:215136 M +1 -1 klondikesolver.cpp --- trunk/KDE/kdegames/kpat/patsolve/klondikesolver.cpp #1075812:1075813 @@ -432,7 +432,7 @@ } } - if ( !Wlen[8] && Wlen[7] ) + if ( Wlen[8] == 0 && Wlen[7] > 1 ) { mp->card_index = 0; mp->from = 7;