[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Re: remote server code fixed I think
From: |
Joern Thyssen |
Subject: |
[Bug-gnubg] Re: remote server code fixed I think |
Date: |
Thu, 4 Sep 2003 20:40:36 +0000 |
User-agent: |
Mutt/1.4.1i |
On Thu, Sep 04, 2003 at 09:38:48PM +0200, address@hidden wrote
> One more data point: With everything set to expert all error rates are 0
> when playing gnu-gnu 5pt match from one instance. [When one is external
> BOTH players error rates become non-zero!]
I think I've found the bug. It was introduced with the code for
resignations.
The following patch solves the problem, but breaks the resignation code.
Index: drawboard.c
===================================================================
RCS file: /cvsroot/gnubg/gnubg/drawboard.c,v
retrieving revision 1.28
diff -c -r1.28 drawboard.c
*** drawboard.c 29 May 2003 11:31:27 -0000 1.28
--- drawboard.c 4 Sep 2003 20:37:23 -0000
***************
*** 1025,1031 ****
*pfCubeOwner = fCanDouble != fOppCanDouble ? fCanDouble : -1;
/* Negative values here show resignations now. -- Rod */
! /* *pfDoubled = *pfDoubled != 0; */
return 0;
}
--- 1025,1031 ----
*pfCubeOwner = fCanDouble != fOppCanDouble ? fCanDouble : -1;
/* Negative values here show resignations now. -- Rod */
! *pfDoubled = *pfDoubled != 0;
return 0;
}
Jørn
pgpSH0cU1rFf7.pgp
Description: PGP signature