X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=fairymax.c;h=2046aaa34e153c0304862545efa52534b90d5d0d;hb=4c963d43b28e5c799b2f599fd41567353f8df057;hp=418c9267d9f559b7e4e07553dedfa0ddd720d800;hpb=585c0bfb224b8ed20cb7718972c0443074d5864e;p=fairymax.git diff --git a/fairymax.c b/fairymax.c index 418c926..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*/ }} @@ -503,7 +503,7 @@ void LoadGame(char *name) /* We have found variant, or if none specified, are at beginning of file */ if(fscanf(f, "%dx%d", &BW, &BH)!=2 || BW>12 || BH!=8) { printf("telluser unsupported board size %dx%d\n",BW,BH); exit(0); } - makruk = 0; if(fscanf(f, "=%d", &i)) makruk=64; // new method to indicate deviant zone depth (for now assumes 3) + makruk = 0; if(fscanf(f, "=%d", &i)) makruk=67-i; // new method to indicate deviant zone depth (for now assumes 3) for(i=0; i