gnome-games r8896 - trunk/aisleriot/rules



Author: vpovirk
Date: Wed Mar 25 05:16:01 2009
New Revision: 8896
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8896&view=rev

Log:
aisleriot: use the trickle effect for autoplay in Forty Thieves

This has a convenient side-effect in that double-clicking a foundation
when no moves are possible will no longer add an empty move to the
history.

This fixes a test failure (see bug 569936).


Modified:
   trunk/aisleriot/rules/forty_thieves.scm

Modified: trunk/aisleriot/rules/forty_thieves.scm
==============================================================================
--- trunk/aisleriot/rules/forty_thieves.scm	(original)
+++ trunk/aisleriot/rules/forty_thieves.scm	Wed Mar 25 05:16:01 2009
@@ -331,7 +331,8 @@
 
 
 (define (autoplay-foundations)
-(if (move-to-foundation) (autoplay-foundations) (recalculate-score))
+(recalculate-score)
+(if (move-to-foundation) (delayed-call autoplay-foundations) #f)
 )
 
 ; double click foundation for autoplay, otherwise does auto



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]