[gnome-games] aisleriot: patch for wrong dialog if king on last slot in helsinki game



commit 46efd354aabd8362045b810d3f0ee6178442b909
Author: Barcc <barcc gmx de>
Date:   Mon Apr 12 21:43:10 2010 +0200

    aisleriot: patch for wrong dialog if king on last slot in helsinki game
    
    GNOME bug #606312

 aisleriot/rules/helsinki.scm |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/aisleriot/rules/helsinki.scm b/aisleriot/rules/helsinki.scm
index 4ffd2d6..eceef0c 100644
--- a/aisleriot/rules/helsinki.scm
+++ b/aisleriot/rules/helsinki.scm
@@ -106,13 +106,14 @@
 (define (check-for-moves slot1 slot2)
   (cond ((= slot1 11)
 	 #f)
-	((or (empty-slot? slot1)
-	     (= slot2 11))
+	((empty-slot? slot1)
 	 (check-for-moves (+ 1 slot1) (+ 2 slot1)))
 	((= (get-value (get-top-card slot1)) king)
 	 (list 2
 	       (get-name (get-top-card slot1))
 	       (_"itself")))
+	((= slot2 11)
+	 (check-for-moves (+ 1 slot1) (+ 2 slot1)))
 	((and (not (empty-slot? slot2))
 	      (= 13 (+ (get-value (get-top-card slot1))
 		       (get-value (get-top-card slot2)))))



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