[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] arend_1_26.4: fix of arend_1_25.2
From: |
Arend Bayer |
Subject: |
[gnugo-devel] arend_1_26.4: fix of arend_1_25.2 |
Date: |
Thu, 21 Feb 2002 01:05:26 +0100 (CET) |
On Thu, 21 Feb 2002, Arend wrote:
>
> and I could trace all of them down to this indeterminacy. So I do hope
> the patch is bug-free.
...which can definitely not be said about arend_1_25.2 (making readconnect
less verbose).
Here is a fix, rather urgent if anyone else uses --alternate-connections
with -t.
Arend
Index: engine/readconnect.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/readconnect.c,v
retrieving revision 1.23
diff -u -r1.23 readconnect.c
--- engine/readconnect.c 11 Feb 2002 23:49:16 -0000 1.23
+++ engine/readconnect.c 20 Feb 2002 22:54:47 -0000
@@ -1005,6 +1005,7 @@
{
int dummy_move;
int save_verbose;
+ int result;
if (move == NULL)
move = &dummy_move;
@@ -1016,8 +1017,9 @@
save_verbose = verbose;
if (verbose > 0)
verbose--;
- return recursive_connect2(str1, str2, move, EMPTY, NO_MOVE, 0);
+ result = recursive_connect2(str1, str2, move, EMPTY, NO_MOVE, 0);
verbose = save_verbose;
+ return result;
}
return recursive_connect(str1, str2, move);
@@ -1120,6 +1122,8 @@
int res = WIN;
int Moves[MAX_MOVES];
int dummy_move;
+ int result;
+ int save_verbose;
if (move == NULL)
move = &dummy_move;
@@ -1127,8 +1131,14 @@
nodes_connect = 0;
*move = PASS_MOVE;
- if (alternate_connections)
- return recursive_disconnect2(str1, str2, move, EMPTY, NO_MOVE, 0);
+ if (alternate_connections) {
+ save_verbose = verbose;
+ if (verbose > 0)
+ verbose --;
+ result = recursive_disconnect2(str1, str2, move, EMPTY, NO_MOVE, 0);
+ verbose = save_verbose;
+ return result;
+ }
Moves[0]=0;
moves_to_prevent_connection_in_three_moves (Moves, str1, str2);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] arend_1_26.4: fix of arend_1_25.2,
Arend Bayer <=