From: H.G. Muller Date: Fri, 18 Jan 2013 16:08:44 +0000 (+0100) Subject: Fix eval sign bug in (not-yet-used) null move X-Git-Tag: 0.18~72 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=693edd87cbab139253642d89197b5b2b20dab673;p=hachu.git Fix eval sign bug in (not-yet-used) null move --- diff --git a/hachu.c b/hachu.c index d28e99e..87b227f 100644 --- a/hachu.c +++ b/hachu.c @@ -1541,7 +1541,7 @@ if(flag && depth>= 0) printf("phase=%d: first/curr/last = %d / %d / %d\n", phase #if 0 if(curEval >= beta) { stm ^= WHITE; - score = -Search(-beta, -iterAlpha, difEval, depth-3, promoSuppress & SQUARE, ABSENT); + score = -Search(-beta, -iterAlpha, -difEval, depth-3, promoSuppress & SQUARE, ABSENT); stm ^= WHITE; if(score >= beta) { msp = oldMSP; retDep += 3; return score + (score < curEval); } }