summaryrefslogtreecommitdiffstats
path: root/robots/move_robs.c
diff options
context:
space:
mode:
Diffstat (limited to 'robots/move_robs.c')
-rw-r--r--robots/move_robs.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/robots/move_robs.c b/robots/move_robs.c
index 27bfb354..b45357cd 100644
--- a/robots/move_robs.c
+++ b/robots/move_robs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $ */
+/* $NetBSD: move_robs.c,v 1.4 1997/10/12 14:10:00 lukem Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -33,16 +33,16 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)move_robs.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $";
+__RCSID("$NetBSD: move_robs.c,v 1.4 1997/10/12 14:10:00 lukem Exp $");
#endif
#endif /* not lint */
# include "robots.h"
-# include <signal.h>
/*
* move_robots:
@@ -50,12 +50,9 @@ static char rcsid[] = "$NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $"
*/
void
move_robots(was_sig)
-bool was_sig;
+ int was_sig;
{
- register COORD *rp;
- register int y, x;
- register int mindist, d;
- static COORD newpos;
+ COORD *rp;
if (Real_time)
signal(SIGALRM, move_robots);
@@ -134,8 +131,9 @@ bool was_sig;
* add_score:
* Add a score to the overall point total
*/
+void
add_score(add)
-int add;
+ int add;
{
Score += add;
move(Y_SCORE, X_SCORE);
@@ -146,8 +144,9 @@ int add;
* sign:
* Return the sign of the number
*/
+int
sign(n)
-int n;
+ int n;
{
if (n < 0)
return -1;