summaryrefslogtreecommitdiffstats
path: root/snake
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-04-29 01:17:12 +0000
committermycroft <mycroft@NetBSD.org>1995-04-29 01:17:12 +0000
commit733fe45afd763538d189033ecb62bc93d8522e93 (patch)
treeedc9aed50b69be8b7385b9c09c971ab596d82b68 /snake
parentccbe90026e3fce06d8b518a2f365d3394c3812b9 (diff)
downloadbsdgames-darwin-733fe45afd763538d189033ecb62bc93d8522e93.tar.gz
bsdgames-darwin-733fe45afd763538d189033ecb62bc93d8522e93.tar.zst
bsdgames-darwin-733fe45afd763538d189033ecb62bc93d8522e93.zip
Fix usages of ospeed.
Diffstat (limited to 'snake')
-rw-r--r--snake/snake/move.c8
-rw-r--r--snake/snake/snake.h4
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