X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=hachu.c;h=2af2697e14d3a618eced449ce5947bba7e050f29;hb=f70407bdade278fd65c3b4c1829168a38b56b101;hp=59fbacf509586fe170a8770e9acc40da4f9d8631;hpb=62077784733af1f94035193b31f3e3379b8a4340;p=hachu.git diff --git a/hachu.c b/hachu.c index 59fbacf..2af2697 100644 --- a/hachu.c +++ b/hachu.c @@ -1460,7 +1460,7 @@ GenCapts(int sqr, int victimValue) for(i=0; i<8; i++) { // scan all knight jumps to locate source int x = sqr - nStep[i], attacker = board[x]; if(attacker == EMPTY || (attacker & TYPE) != stm) continue; - if(p[attacker].range[i] <= N && p[attacker].range[i] >= S && p[attacker].range[i] != J) { // has Knight jump in our direction + if(p[attacker].range[i] <= L && p[attacker].range[i] >= S || p[attacker].range[i] == N) { // has Knight jump in our direction NewCapture(x, sqr + victimValue, p[attacker].promoFlag); // plain jump (as in N) if(p[attacker].range[i] < N) { // Lion power; generate double captures over two possible intermediates int v = kStep[i]; // leftish path