summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--backgammon/backgammon/main.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/backgammon/backgammon/main.c b/backgammon/backgammon/main.c
index 0a4ff8a2..8c93ed93 100644
--- a/backgammon/backgammon/main.c
+++ b/backgammon/backgammon/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.9 1999/02/10 12:29:47 hubertf Exp $ */
+/* $NetBSD: main.c,v 1.10 1999/07/14 22:46:21 hubertf Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.9 1999/02/10 12:29:47 hubertf Exp $");
+__RCSID("$NetBSD: main.c,v 1.10 1999/07/14 22:46:21 hubertf Exp $");
#endif
#endif /* not lint */
@@ -471,15 +471,14 @@ main(argc, argv)
/* compute game value */
if (tflag)
curmove(20, 0);
- if (*offopp == 15) {
+ if (*offopp == 15 && *offptr <= 0) {
if (mflag) {
writel(bgammon);
gvalue *= 3;
- } else
- if (*offptr <= 0) {
- writel(gammon);
- gvalue *= 2;
- }
+ } else {
+ writel(gammon);
+ gvalue *= 2;
+ }
}
/* report situation */
if (cturn == -1) {