X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/963f40fabfbfc47378585a05f5b465cbd4e0c7b6..812482eb24c871be129d3faf80e646894c96c4aa:/monop/misc.c diff --git a/monop/misc.c b/monop/misc.c index 635604c6..f9a37557 100644 --- a/monop/misc.c +++ b/monop/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.9 1999/09/30 18:01:32 jsm Exp $ */ +/* $NetBSD: misc.c,v 1.12 2004/01/26 09:59:36 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -12,11 +12,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * @@ -38,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: misc.c,v 1.9 1999/09/30 18:01:32 jsm Exp $"); +__RCSID("$NetBSD: misc.c,v 1.12 2004/01/26 09:59:36 jsm Exp $"); #endif #endif /* not lint */ @@ -57,7 +53,7 @@ getyn(prompt) int com; for (;;) - if ((com=getinp(prompt, yn)) < 2) + if ((com=getinp(prompt, yncoms)) < 2) return com; else (*func[com-2])(); @@ -85,7 +81,7 @@ notify() void next_play() { - player = ++player % num_play; + player = (player + 1) % num_play; cur_p = &play[player]; num_doub = 0; }