[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/kpat/patsolve
From:       Stephan Kulow <coolo () kde ! org>
Date:       2008-02-26 8:42:05
Message-ID: 1204015325.572776.4886.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 779468 by coolo:

open free piles too
BUG:158289


 M  +2 -1      spider.cpp  


--- trunk/KDE/kdegames/kpat/patsolve/spider.cpp #779467:779468
@@ -307,8 +307,9 @@
                      RANK(card) == RANK(*Wp[j]) - 1 )
                 {
                     allowed = true;
-                    if ( ( SUIT( card ) != SUIT( *Wp[j] ) ) && foundgood )
+                    if ( ( SUIT( card ) != SUIT( *Wp[j] ) ) && ( foundgood && Wlen[i] > l + 1 )) {
                         allowed = false; // make the tree simpler
+                    }
                 }
                 if ( Wlen[j] == 0 && !wasempty )
                 {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic