X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=fairymax.c;h=ffa6ca87065cf6beee3cb4ed18c5094721af2fef;hb=e78e7b6c6b164ea731454e9a8c85e87eed9e9022;hp=792ceeb730f88f0c655a3f5c31bdd179edf9ffc8;hpb=857ddcade2d574782d3d8643bedcaf42b79f483f;p=fairymax.git diff --git a/fairymax.c b/fairymax.c index 792ceeb..ffa6ca8 100644 --- a/fairymax.c +++ b/fairymax.c @@ -18,7 +18,7 @@ /*****************************************************************/ #define MULTIPATH -#define VERSION "4.8R" +#define VERSION "4.8S" #include #include @@ -187,7 +187,7 @@ int k,q,l,e,E,z,n; /* (q,l)=window, e=current eval. score, E=e.p. sqr.*/ } #endif m=E<16|(E^112)<16&&flag&1&y-E<2&E-y<2?I:m; /* bad castling */ - if(p<3&y==E)H=z&127; /* shift capt.sqr. H if e.p.*/ + if(p<3&y==E&flag)H=z&127; /* shift capt.sqr. H if e.p.*/ t=b[H]; if(flag&1+!t) /* mode (capt/nonc) allowed?*/ {if(t&&(t&16)==k)break; /* capture own */