X-Git-Url: http://winboard.nl/cgi-bin?p=fairymax.git;a=blobdiff_plain;f=fairymax.c;h=2046aaa34e153c0304862545efa52534b90d5d0d;hp=007e54265109b8535a8e7d1ce89b061b0c6fcbfd;hb=53922e6c4e1aec25ccd20e4e46483846c93fd775;hpb=bd8330e2a96caf8c610df5b22ca5ff67ab3a699b diff --git a/fairymax.c b/fairymax.c index 007e542..2046aaa 100644 --- a/fairymax.c +++ b/fairymax.c @@ -276,7 +276,7 @@ int k,q,l,e,E,z,n; /* (q,l)=window, e=current eval. score, E=e.p. sqr.*/ )t+=flag&4; /* fake capt. for nonsliding*/ else if(flag&64)t=flag&128?0:t,flag&=63;else F=y; /* enable e.p. */ if(s&&flag&8&&!(y=rg&1?y-r:y,t=0) /* hoppers go to next phase */ - ||!(flag&S)&&--rg<0) /* zig-zag piece? (w. delay)*/ + ||!(flag&S)&&!rg--) /* zig-zag piece? (w. delay)*/ r=v,flag^=flag>>4&15; /* alternate vector & mode */ }W(!t); /* if not capt. continue ray*/ }}