diff options
author | christos <christos@NetBSD.org> | 2006-03-19 00:29:27 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 2006-03-19 00:29:27 +0000 |
commit | 6a1b3c3645bb800749f068acb8453f1b6c257b83 (patch) | |
tree | def282c138292c252528e4d13e00de75edcfbfcd /mille | |
parent | 0521c7bab72728f9b578d28a6f3fe39f1503d25b (diff) | |
download | bsdgames-darwin-6a1b3c3645bb800749f068acb8453f1b6c257b83.tar.gz bsdgames-darwin-6a1b3c3645bb800749f068acb8453f1b6c257b83.tar.zst bsdgames-darwin-6a1b3c3645bb800749f068acb8453f1b6c257b83.zip |
Coverity CID 695: Remove impossible condition. This changes the scoring as
it was probably intended originally.
Diffstat (limited to 'mille')
-rw-r--r-- | mille/comp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mille/comp.c b/mille/comp.c index 3b1bc300..ef42f102 100644 --- a/mille/comp.c +++ b/mille/comp.c @@ -1,4 +1,4 @@ -/* $NetBSD: comp.c,v 1.9 2003/08/07 09:37:24 agc Exp $ */ +/* $NetBSD: comp.c,v 1.10 2006/03/19 00:29:27 christos 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.9 2003/08/07 09:37:24 agc Exp $"); +__RCSID("$NetBSD: comp.c,v 1.10 2006/03/19 00:29:27 christos Exp $"); #endif #endif /* not lint */ @@ -342,9 +342,7 @@ normbad: *value /= ++badcount; if (op->mileage == 0) *value += 5; - if ((card == C_LIMIT && - op->speed == C_LIMIT) || - !op->can_go) + if (op->speed == C_LIMIT || !op->can_go) *value -= 5; if (cango && pp->safety[S_RIGHT_WAY] != S_UNKNOWN) |