]> git.lizzy.rs Git - plan9front.git/commitdiff
fixed bug in glendy game
authoraiju <aiju@phicode.de>
Mon, 16 May 2011 06:22:11 +0000 (06:22 +0000)
committeraiju <aiju@phicode.de>
Mon, 16 May 2011 06:22:11 +0000 (06:22 +0000)
sys/src/games/glendy.c

index 753bd0a55af4fe89f5cd68c0c1af00ce42f40c95..b7cc8bbd45ca8474af0b7d4594856f8794724f48 100644 (file)
@@ -349,6 +349,7 @@ score1(int x, int y) {
                if(next < min)
                        min = next;
        }
+       if(min == 999) return 998;
        return 1+min;
 }