mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
from pjanzen:
Start with the cursor on the worm's head. ok millert
This commit is contained in:
parent
3c877182e5
commit
694ee1bce2
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: worm.c,v 1.25 2014/01/28 14:28:44 jmc Exp $ */
|
||||
/* $OpenBSD: worm.c,v 1.26 2014/01/28 14:30:28 jmc Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@ -126,6 +126,8 @@ main(int argc, char **argv)
|
||||
wrefresh(tv);
|
||||
life(); /* Create the worm */
|
||||
prize(); /* Put up a goal */
|
||||
wmove(tv, head->y, head->x); /* Leave cursor on worm */
|
||||
wrefresh(tv);
|
||||
while(1)
|
||||
{
|
||||
if (wantleave) {
|
||||
|
Loading…
Reference in New Issue
Block a user