summaryrefslogtreecommitdiffstats
path: root/robots
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-07-24 23:28:02 +0000
committerhubertf <hubertf@NetBSD.org>1998-07-24 23:28:02 +0000
commit6b63906e328f043e2f6fdd3c3cf556fc0533aa1f (patch)
treef7f03687a0dac3dcd949e13ae19c500c3670dfc4 /robots
parentf56e8bacb33e51e6214922b883303942fd51354a (diff)
downloadbsdgames-darwin-6b63906e328f043e2f6fdd3c3cf556fc0533aa1f.tar.gz
bsdgames-darwin-6b63906e328f043e2f6fdd3c3cf556fc0533aa1f.tar.zst
bsdgames-darwin-6b63906e328f043e2f6fdd3c3cf556fc0533aa1f.zip
Fix for compiling with -DFANCY, as per PR 5832 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'robots')
-rw-r--r--robots/move.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/robots/move.c b/robots/move.c
index c78bcb53..ff8476cd 100644
--- a/robots/move.c
+++ b/robots/move.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move.c,v 1.6 1997/10/12 14:09:59 lukem Exp $ */
+/* $NetBSD: move.c,v 1.7 1998/07/24 23:28:02 hubertf Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: move.c,v 1.6 1997/10/12 14:09:59 lukem Exp $");
+__RCSID("$NetBSD: move.c,v 1.7 1998/07/24 23:28:02 hubertf Exp $");
#endif
#endif /* not lint */
@@ -54,6 +54,9 @@ void
get_move()
{
int c;
+#ifdef FANCY
+ int lastmove;
+#endif /*FANCY*/
if (Waiting)
return;
@@ -64,7 +67,8 @@ get_move()
lastmove = *Next_move;
else
lastmove = -1; /* flag for "first time in" */
- }
+ } else
+ lastmove = 0; /* Shut up gcc */
#endif
for (;;) {
if (Teleport && must_telep())