gnome-games r8896 - trunk/aisleriot/rules
- From: vpovirk svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8896 - trunk/aisleriot/rules
- Date: Wed, 25 Mar 2009 05:16:01 +0000 (UTC)
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]