summaryrefslogtreecommitdiffstats
path: root/mille
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-02-04 03:29:41 +0000
committermrg <mrg@NetBSD.org>2019-02-04 03:29:41 +0000
commitb1ed8d449b26da0d4179acd3ebea3e4b021477cd (patch)
tree0fb6fe72264442efab63cf14928fa8681e007f0f /mille
parent6cc626ca663340efc734eaf0822b2948251aae43 (diff)
downloadbsdgames-darwin-b1ed8d449b26da0d4179acd3ebea3e4b021477cd.tar.gz
bsdgames-darwin-b1ed8d449b26da0d4179acd3ebea3e4b021477cd.tar.zst
bsdgames-darwin-b1ed8d449b26da0d4179acd3ebea3e4b021477cd.zip
- 'cango' is used beyond a bool type. make it an int.
- add a couple of fallthru comments.
Diffstat (limited to 'mille')
-rw-r--r--mille/comp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mille/comp.c b/mille/comp.c
index 83f8aa3a..2b59bbd7 100644
--- a/mille/comp.c
+++ b/mille/comp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: comp.c,v 1.13 2009/05/25 23:44:04 dholland Exp $ */
+/* $NetBSD: comp.c,v 1.14 2019/02/04 03:29:41 mrg Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)comp.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: comp.c,v 1.13 2009/05/25 23:44:04 dholland Exp $");
+__RCSID("$NetBSD: comp.c,v 1.14 2019/02/04 03:29:41 mrg Exp $");
#endif
#endif /* not lint */
@@ -52,7 +52,8 @@ calcmove(void)
CARD card;
int *value;
PLAY *pp, *op;
- bool foundend, cango, canstop, foundlow;
+ bool foundend, canstop, foundlow;
+ int cango;
unsigned int i, count200, badcount, nummin, nummax, diff;
int curmin, curmax;
CARD safe, oppos;
@@ -217,6 +218,7 @@ okay:
*value = 0;
break;
}
+ /* FALLTHROUGH */
case C_75: case C_100:
*value = (Value[card] >> 3);
if (pp->speed == C_LIMIT)
@@ -423,6 +425,7 @@ onecard(const PLAY *pp)
card = (End - pp->mileage == 75 ? C_75 : C_100);
if (spd == C_LIMIT)
return Numseen[S_RIGHT_WAY] == 0;
+ /* FALLTHROUGH */
case 50:
case 25:
if (card == -1)