From: hubertf Date: Fri, 24 Jul 1998 23:28:02 +0000 (+0000) Subject: Fix for compiling with -DFANCY, as per PR 5832 by Joseph Myers X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/commitdiff_plain/6b63906e328f043e2f6fdd3c3cf556fc0533aa1f Fix for compiling with -DFANCY, as per PR 5832 by Joseph Myers --- 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())