diff options
Diffstat (limited to 'snake/snake')
-rw-r--r-- | snake/snake/move.c | 8 | ||||
-rw-r--r-- | snake/snake/snake.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/snake/snake/move.c b/snake/snake/move.c index 993c1636..5a90795d 100644 --- a/snake/snake/move.c +++ b/snake/snake/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.10 1995/04/29 00:06:37 mycroft Exp $ */ +/* $NetBSD: move.c,v 1.11 1995/04/29 01:17:12 mycroft Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 7/19/93"; #else -static char rcsid[] = "$NetBSD: move.c,v 1.10 1995/04/29 00:06:37 mycroft Exp $"; +static char rcsid[] = "$NetBSD: move.c,v 1.11 1995/04/29 01:17:12 mycroft Exp $"; #endif #endif /* not lint */ @@ -107,7 +107,7 @@ int CMlength; int NDlength; int BSlength; int delaystr[10]; -short ospeed; +speed_t ospeed; static char str[80]; @@ -515,7 +515,7 @@ int t; { int k,j; - k = ospeed * t / 300; + k = (ospeed * t + 100) / 200; for(j=0;j<k;j++){ putchar(PC); } diff --git a/snake/snake/snake.h b/snake/snake/snake.h index 3543fd16..921426ae 100644 --- a/snake/snake/snake.h +++ b/snake/snake/snake.h @@ -1,4 +1,4 @@ -/* $NetBSD: snake.h,v 1.5 1995/04/29 00:06:43 mycroft Exp $ */ +/* $NetBSD: snake.h,v 1.6 1995/04/29 01:17:15 mycroft Exp $ */ /* * Copyright (c) 1980, 1993 @@ -62,7 +62,7 @@ char tbuf[1024], tcapbuf[128]; char *tgetstr(), *tgoto(); int Klength; /* length of KX strings */ int chunk; /* amount of money given at a time */ -short ospeed; +speed_t ospeed; #ifdef debug #define cashvalue (loot-penalty)/25 #else |