gnome-games r9050 - trunk/aisleriot/rules



Author: vpovirk
Date: Mon Apr 13 05:09:38 2009
New Revision: 9050
URL: http://svn.gnome.org/viewvc/gnome-games?rev=9050&view=rev

Log:
aisleriot: move give-status-message calls to game-continuable in Zebra

This fixes a no-op move when clicking an empty stock.

This fixes a test failure (bug 569936).


Modified:
   trunk/aisleriot/rules/zebra.scm

Modified: trunk/aisleriot/rules/zebra.scm
==============================================================================
--- trunk/aisleriot/rules/zebra.scm	(original)
+++ trunk/aisleriot/rules/zebra.scm	Mon Apr 13 05:09:38 2009
@@ -86,8 +86,7 @@
       (and (not (empty-slot? 1))
 	   (deal-cards-face-up 1 (list slot)))
       (and (not (empty-slot? 0))
-	   (deal-cards-face-up 0 (list slot))
-	   (give-status-message))
+	   (deal-cards-face-up 0 (list slot)))
       #t))
 
 (define (droppable? start-slot card-list end-slot)
@@ -113,12 +112,10 @@
            (begin
              (move-n-cards! start-slot end-slot (reverse card-list))
              (add-to-score! (length card-list))))
-       (empty-tableau start-slot)
-       (give-status-message)))
+       (empty-tableau start-slot)))
 
 (define (do-deal-next-cards)
-  (flip-stock 0 1 1)
-  (give-status-message))
+  (flip-stock 0 1 1))
 
 (define (dealable?)
   (flippable? 0 1 1))
@@ -149,6 +146,7 @@
        (add-to-score! 1)))
 
 (define (game-continuable)
+  (give-status-message)
   (get-hint))
 
 (define (game-won)



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