=================================================================== RCS file: /cvs/ace/ace/games/solitaire.c,v retrieving revision 1.11 retrieving revision 1.12 diff -p -u -r1.11 -r1.12 --- ace/games/solitaire.c 2002/08/30 12:12:46 1.11 +++ /cvs/ace/ace/games/solitaire.c 2010/05/28 17:30:24 1.12 @@ -18,6 +18,7 @@ #include #include #include +#include "imagelib.h" #include "cards.h" #define W CARD_WIDTH @@ -183,6 +184,8 @@ redraw() stack_redraw(); } +static void check_for_end_of_game(); + extern char solitaire_help[]; static void @@ -589,6 +592,7 @@ double_click(int x, int y, int b) static void drag(int x, int y, int b) { + drag_active = 1; if (b > 1) return; drag_active = 1; last_n = n_droppable(x, y); @@ -617,10 +621,12 @@ drop(int x, int y, int b) update_status_text(1); } + drag_active = 0; + stack_drop(dest_stack, last_n); drag_active = 0; - + check_for_end_of_game(); }