[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: 2009-07-30 10:44:27
Message-ID: 1248950667.063273.18290.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1004492 by coolo:
follow the redeal logic of the original algorithm
BUG: 198878
M +4 -2 grandf.cpp
--- trunk/KDE/kdegames/kpat/patsolve/grandf.cpp #1004491:1004492
@@ -72,7 +72,9 @@
card = deck[--len];
int currentpile = m_redeal * 7 + i;
Wp[currentpile]++;
- *Wp[currentpile] = card + ( 1 << 7 );
+ *Wp[currentpile] = card;
+ if ( i != start )
+ *Wp[currentpile] += ( 1 << 7 );
Wlen[currentpile]++;
}
i += dir;
@@ -317,7 +319,7 @@
printcard( *Wp[j], stderr );
fprintf( stderr, " allowed %d\n",allowed );
#endif
- if ( allowed )
+ if ( allowed )
{
mp->card_index = l;
mp->from = i;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic