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.
This commit is contained in:
cinap_lenrek 2021-04-02 22:05:15 +02:00
parent 295acd7e0d
commit 74befadb14
2 changed files with 4 additions and 7 deletions

View file

@ -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

View file

@ -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) {