forked from len0rd/rockbox
* fix bug (when double clicking on a card on the remains' stack to
automatically move it to the corresponding final stack, if the move worked, the cursor wasn't able to select a new card afterwards. - yeah, this sounds a bit complicated) * remove trailing spaces/tabs TODO: Fix/clean/rewrite the plugin. This whole code is a mess. It's impossible to read and maintain. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10196 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
18e6529d5d
commit
7ee850e432
1 changed files with 75 additions and 71 deletions
|
@ -7,7 +7,7 @@
|
|||
* \/ \/ \/ \/ \/
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2004-2005 dionoea (Antoine Cellerier)
|
||||
* Copyright (C) 2004-2006 dionoea (Antoine Cellerier)
|
||||
*
|
||||
* All files in this archive are subject to the GNU General Public License.
|
||||
* See the file COPYING in the source tree root for full license agreement.
|
||||
|
@ -866,8 +866,8 @@ unsigned char move_card(unsigned char dest_col, unsigned char src_card){
|
|||
else {
|
||||
deck[src_card_prev].next = deck[src_card].next;
|
||||
}
|
||||
cur_rem = src_card_prev;
|
||||
deck[src_card].next = NOT_A_CARD;
|
||||
cur_rem = src_card_prev;
|
||||
coun_rem = coun_rem-1;
|
||||
}
|
||||
/* if the src card is from somewhere else, just take everything */
|
||||
|
@ -1375,6 +1375,10 @@ int solitaire(void){
|
|||
} else if(sel_card == cur_card) {
|
||||
move_card(deck[sel_card].suit + COL_NUM, sel_card);
|
||||
sel_card = NOT_A_CARD;
|
||||
if( cur_col == REM_COL )
|
||||
{
|
||||
cur_card = cur_rem;
|
||||
}
|
||||
/* try moving cards */
|
||||
} else {
|
||||
if(move_card(cur_col, sel_card) == MOVE_OK){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue