summaryrefslogtreecommitdiff
path: root/apps/plugins/solitaire.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/solitaire.c')
-rw-r--r--apps/plugins/solitaire.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/solitaire.c b/apps/plugins/solitaire.c
index 1c4746f7dc..0d3b79ef57 100644
--- a/apps/plugins/solitaire.c
+++ b/apps/plugins/solitaire.c
@@ -208,7 +208,7 @@ static struct plugin_api* rb;
208 ": Select cards, Move cards, reveal hidden cards ..." 208 ": Select cards, Move cards, reveal hidden cards ..."
209#define HELP_SOL_DRAW HK_DRAW \ 209#define HELP_SOL_DRAW HK_DRAW \
210 ": Un-select a card if it was selected. " \ 210 ": Un-select a card if it was selected. " \
211 "Else, draw 3 new cards out of the remains' stack." 211 "Else, draw new cards out of the remains' stack."
212#define HELP_SOL_REM2CUR HK_REM2CUR \ 212#define HELP_SOL_REM2CUR HK_REM2CUR \
213 ": Put the card on top of the remains' stack on top of the cursor." 213 ": Put the card on top of the remains' stack on top of the cursor."
214#define HELP_SOL_CUR2STACK HK_CUR2STACK \ 214#define HELP_SOL_CUR2STACK HK_CUR2STACK \
@@ -937,7 +937,8 @@ unsigned char find_last_card( unsigned char col )
937 } 937 }
938 else 938 else
939 { 939 {
940 c = rem; 940 //c = rem;
941 c = cur_rem;
941 } 942 }
942 943
943 if(c == NOT_A_CARD) 944 if(c == NOT_A_CARD)
@@ -1216,8 +1217,8 @@ int solitaire( void )
1216 } 1217 }
1217 1218
1218 /* draw the remains */ 1219 /* draw the remains */
1219 if( ( cur_rem == NOT_A_CARD && rem != NOT_A_CARD ) 1220 if( rem != NOT_A_CARD &&
1220 || deck[cur_rem].next != NOT_A_CARD ) 1221 ( cur_rem == NOT_A_CARD || deck[cur_rem].next != NOT_A_CARD ) )
1221 { 1222 {
1222 /* gruik ! (we want to display a card back) */ 1223 /* gruik ! (we want to display a card back) */
1223 deck[rem].known = false; 1224 deck[rem].known = false;