Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/worm This patch makes worm(6) keep the cursor on the h...



details:   https://anonhg.NetBSD.org/src/rev/2af366ad1420
branches:  trunk
changeset: 474996:2af366ad1420
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Wed Jul 28 23:09:45 1999 +0000

description:
This patch makes worm(6) keep the cursor on the head of the worm.

Submitted by Joseph Myers <jsm28%cam.ac.uk@localhost> in PR 8103.

diffstat:

 games/worm/worm.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 7aecd7c78324 -r 2af366ad1420 games/worm/worm.c
--- a/games/worm/worm.c Wed Jul 28 23:01:59 1999 +0000
+++ b/games/worm/worm.c Wed Jul 28 23:09:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: worm.c,v 1.9 1998/09/13 15:27:30 hubertf Exp $ */
+/*     $NetBSD: worm.c,v 1.10 1999/07/28 23:09:45 hubertf Exp $        */
 
 /*
  * Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)worm.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: worm.c,v 1.9 1998/09/13 15:27:30 hubertf Exp $");
+__RCSID("$NetBSD: worm.c,v 1.10 1999/07/28 23:09:45 hubertf Exp $");
 #endif
 #endif /* not lint */
 
@@ -283,7 +283,10 @@
        display(nh, HEAD);
        head = nh;
        if (!(slow && running))
+       {
+               wmove(tv, head->y, head->x);
                wrefresh(tv);
+       }
        if (!running)
                alarm(1);
 }



Home | Main Index | Thread Index | Old Index