summaryrefslogtreecommitdiff
path: root/games/worm/worm.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1999-04-20 23:01:14 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1999-04-20 23:01:14 +0000
commitb4cd185f95b2a5178319043c512cae1285cfbba5 (patch)
treeb6cbfcade82a1e6672c48e84dd72c0478a8f6c95 /games/worm/worm.c
parent67b342787d34e5210f4e35291e075d0c3ec5d9ee (diff)
jsm28@cam.ac.uk: place cursor on player, not one over.
Diffstat (limited to 'games/worm/worm.c')
-rw-r--r--games/worm/worm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/games/worm/worm.c b/games/worm/worm.c
index ccf1b1c7f4e..ebd2cadacd9 100644
--- a/games/worm/worm.c
+++ b/games/worm/worm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: worm.c,v 1.7 1998/09/16 00:44:37 pjanzen Exp $ */
+/* $OpenBSD: worm.c,v 1.8 1999/04/20 23:01:13 pjanzen Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: worm.c,v 1.7 1998/09/16 00:44:37 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: worm.c,v 1.8 1999/04/20 23:01:13 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -291,8 +291,10 @@ process(ch)
nh->x = x;
display(nh, HEAD);
head = nh;
- if (!(slow && running))
+ if (!(slow && running)) {
+ wmove(tv, head->y, head->x);
wrefresh(tv);
+ }
if (!running)
alarm(1);
}