]> git.lizzy.rs Git - plan9front.git/commitdiff
games/glendy: your complication had a complication (god damn it kemal)
authorcinap_lenrek <cinap_lenrek@felloff.net>
Fri, 2 Apr 2021 20:23:40 +0000 (22:23 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Fri, 2 Apr 2021 20:23:40 +0000 (22:23 +0200)
sys/src/games/glendy.c

index bc95017aefb7a597ec88f431e0430c7d028a849f..44ba03ebef3f3a6261d14bafcc87a118719077d0 100644 (file)
@@ -45,17 +45,17 @@ Image       *won;
 
 char *mbuttons[] = 
 {
-       "easy",
-       "medium",
-       "hard",
+       "Easy",
+       "Medium",
+       "Hard",
        0
 };
 
 char *rbuttons[] = 
 {
-       "new",
-       "reset",
-       "exit",
+       "New",
+       "Reset",
+       "Exit",
        0
 };
 
@@ -386,7 +386,7 @@ nextglenda(void)
                        nextdir = (nrand(++count) == 0)?dir:nextdir;
                }
        }
-       if(min <= 100)
+       if(min < 100 || min == 999)
                domove(nextdir, p.x, p.y);
        else
                finished = Won;