diff options
-rw-r--r-- | sys/man/1/games | 4 | ||||
-rw-r--r-- | sys/src/games/glendy.c | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/sys/man/1/games b/sys/man/1/games index 1abb4599a..d04cca9f7 100644 --- a/sys/man/1/games +++ b/sys/man/1/games @@ -200,7 +200,9 @@ and add gibberish diagrams, equations and tables. .TP .B glendy -Don't let the rabbit escape. +Don't let the rabbit escape. Button 2 presents a menu that you +can set the difficulty level from. Button 3 presents a menu +that you can either play a new game, reset the game or exit. .TP .B juggle Display the juggling diff --git a/sys/src/games/glendy.c b/sys/src/games/glendy.c index b7cc8bbd4..bc95017ae 100644 --- a/sys/src/games/glendy.c +++ b/sys/src/games/glendy.c @@ -386,7 +386,7 @@ nextglenda(void) nextdir = (nrand(++count) == 0)?dir:nextdir; } } - if(min < 100) + if(min <= 100) domove(nextdir, p.x, p.y); else finished = Won; @@ -459,7 +459,6 @@ main(int argc, char **argv) Mouse m; Event ev; int e, mousedown=0; - char *fontname; USED(argv, argc); @@ -475,10 +474,6 @@ main(int argc, char **argv) initlevel(); /* must happen before "eresized" */ eresized(0); - fontname = "/lib/font/bit/lucidasans/unicode.8.font"; - if((font = openfont(display, fontname)) == nil) - sysfatal("font '%s' not found", fontname); - for(;;) { e = event(&ev); switch(e) { |