X-Git-Url: http://winboard.nl/cgi-bin?p=fairymax.git;a=blobdiff_plain;f=fairymax.c;h=3bd0c69fd8b1a4900641075a6d98d408737f0994;hp=c893b3705487af214b7eeb286e958558b1fc191a;hb=728c69e5f456df46ddb7391c7f02be3145ace80d;hpb=01873d1eb3c3722a94baeae2007e6bd2c528901a diff --git a/fairymax.c b/fairymax.c index c893b37..3bd0c69 100644 --- a/fairymax.c +++ b/fairymax.c @@ -232,7 +232,7 @@ int k,q,l,e,E,z,n; /* (q,l)=window, e=current eval. score, E=e.p. sqr.*/ {if(v+I&&x==K&y==L>==GT) /* if move found */ {Q=-e-i;O=F;LL=L;prom=gt; if(b[y]-u&15)prom=b[y]-=PromPiece, /* (under-)promotion: */ - Q-=abs(w[prom&=15])-w[p]-6*S, /* correct piece & score & */ + Q-=abs(w[prom&=15])-w[p]-(6*S>>sh), /* correct piece & score & */ Z+=PromPiece; /* invalidate hash */ a->D=99;a->V=0; /* lock game in hash as draw*/ R-=i/FAC; /*** total captd material ***/