summaryrefslogtreecommitdiff
path: root/games/robots/move_robs.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1999-12-18 11:18:14 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1999-12-18 11:18:14 +0000
commita42e3d2c15c4b42ff7d93ca7d34e732b02d6bc26 (patch)
treed78b479350d56089196e73b0dba12eef5915ec7d /games/robots/move_robs.c
parent92bde0311bb2fbaec24f3355d514674ab9410b76 (diff)
Enable realtime mode, use native curses functions when available, tidy man
page, and use MAXLOGNAME for scorefile (this makes new scorefiles incompatible with old ones). Realtime idea and some code from d@.
Diffstat (limited to 'games/robots/move_robs.c')
-rw-r--r--games/robots/move_robs.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/games/robots/move_robs.c b/games/robots/move_robs.c
index ac2cf3eca83..1c76207492d 100644
--- a/games/robots/move_robs.c
+++ b/games/robots/move_robs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: move_robs.c,v 1.2 1998/07/09 04:34:19 pjanzen Exp $ */
+/* $OpenBSD: move_robs.c,v 1.3 1999/12/18 11:18:13 pjanzen Exp $ */
/* $NetBSD: move_robs.c,v 1.3 1995/04/22 10:08:59 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)move_robs.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: move_robs.c,v 1.2 1998/07/09 04:34:19 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: move_robs.c,v 1.3 1999/12/18 11:18:13 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -49,13 +49,10 @@ static char rcsid[] = "$OpenBSD: move_robs.c,v 1.2 1998/07/09 04:34:19 pjanzen E
* Move the robots around
*/
void
-move_robots(was_sig)
- bool was_sig;
+move_robots()
{
register COORD *rp;
- if (Real_time)
- signal(SIGALRM, move_robots);
# ifdef DEBUG
move(Min.y, Min.x);
addch(inch());
@@ -109,12 +106,6 @@ move_robots(was_sig)
Max.x = rp->x;
}
- if (was_sig) {
- refresh();
- if (Dead || Num_robots <= 0)
- longjmp(End_move, 0);
- }
-
# ifdef DEBUG
standout();
move(Min.y, Min.x);
@@ -123,8 +114,6 @@ move_robots(was_sig)
addch(inch());
standend();
# endif DEBUG
- if (Real_time)
- alarm(3);
}
/*