X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=hachu.c;fp=hachu.c;h=0e931b52a8da30b0f2fe0536fafcbd055308f5fe;hb=d8ea6eaeb6bd5760e9643000b66e114a6b950bc2;hp=0f612f48331edf237670a6004d448a0c489829e5;hpb=fb0a912d9567dfea7682e074f14fc0158b96f316;p=hachu.git diff --git a/hachu.c b/hachu.c index 0f612f4..0e931b5 100644 --- a/hachu.c +++ b/hachu.c @@ -1685,7 +1685,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] <= L && p[attacker].range[i] >= S || p[attacker].range[i] == N) { // has Knight jump in our direction + if(p[attacker].range[i] == L || p[attacker].range[i] < W && 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