diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-04-02 22:05:15 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-04-02 22:05:15 +0200 |
commit | 74befadb1457ccb955d2dfa3c9fb44653e4986f9 (patch) | |
tree | d92c68bbbf8df1bb24c01a0aac124cf289ab87e3 | |
parent | 295acd7e0d711cfd2c7c6a1bd45d00c9727f5786 (diff) | |
download | plan9front-74befadb1457ccb955d2dfa3c9fb44653e4986f9.tar.xz |
games/glendy: don't use lucida sans in menus by default and bugfix (thanks kemal)
i have found one bug. when i put glenda in a position like this
i somehow win, but the glenda can escape from there.
in addition, i have changed the games manpage to include more info about glendy.
-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) { |