J=f;Z=g;\r
if(h){h=0;goto A;} /* redo after doing old best*/\r
}\r
- s=t;v=r^flag>>12; /* calc. alternated vector */\r
+ s=t;v=r^flag>>12; /* capt & alternated vector */\r
if(flag&15^4|u&32|| /* no double or moved before*/\r
p>2&!(flag&S)&& /* no P & no virgin jump, */\r
((b[G=r<0?x&~15:BW-1|x&112]^32)<33 /* no virgin R in corner G, */\r
||b[G^1]|b[G^2]|b[FF=y+v-r]) /* no 2 empty sq. next to R */\r
)t+=flag&4; /* fake capt. for nonsliding*/\r
else if(flag&64)t=flag&128?0:t,flag&=63;else F=y; /* enable e.p. */\r
- if(s&&flag&8)t=0,flag^=flag>>4&15; /* hoppers go to next phase */\r
- if(--rg<0&!(flag&S)) /* zig-zag piece? (w. delay)*/\r
+ if(s&&flag&8&&!(y-=rg*r,t=0) /* hoppers go to next phase */\r
+ ||!(flag&S)&&--rg<0) /* zig-zag piece? (w. delay)*/\r
r=v,flag^=flag>>4&15; /* alternate vector & mode */\r
}W(!t); /* if not capt. continue ray*/\r
}}\r