summaryrefslogtreecommitdiffstats
path: root/robots/move_robs.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1999-05-15 23:56:35 +0000
committerchristos <christos@NetBSD.org>1999-05-15 23:56:35 +0000
commit36e0b3e5fe951ef4265a0da56201960d52ed7ee6 (patch)
tree6b71e3215f92724a7dac1883a247d5b15aba483c /robots/move_robs.c
parent8da3d5189a9a79e6cd764ad062df763e1cb5a962 (diff)
downloadbsdgames-darwin-36e0b3e5fe951ef4265a0da56201960d52ed7ee6.tar.gz
bsdgames-darwin-36e0b3e5fe951ef4265a0da56201960d52ed7ee6.zip
Add -A for automatic playing mode.
Make the score file MI
Diffstat (limited to 'robots/move_robs.c')
-rw-r--r--robots/move_robs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/robots/move_robs.c b/robots/move_robs.c
index b45357cd..be354e0b 100644
--- a/robots/move_robs.c
+++ b/robots/move_robs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move_robs.c,v 1.4 1997/10/12 14:10:00 lukem Exp $ */
+/* $NetBSD: move_robs.c,v 1.5 1999/05/15 23:56:36 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)move_robs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: move_robs.c,v 1.4 1997/10/12 14:10:00 lukem Exp $");
+__RCSID("$NetBSD: move_robs.c,v 1.5 1999/05/15 23:56:36 christos Exp $");
#endif
#endif /* not lint */
@@ -91,6 +91,7 @@ move_robots(was_sig)
Dead = TRUE;
else if (Field[rp->y][rp->x] > 1) {
mvaddch(rp->y, rp->x, HEAP);
+ Scrap[Num_scrap++] = *rp;
rp->y = -1;
Num_robots--;
if (Waiting)
@@ -122,7 +123,7 @@ move_robots(was_sig)
move(Max.y, Max.x);
addch(inch());
standend();
-# endif DEBUG
+# endif /* DEBUG */
if (Real_time)
alarm(3);
}