X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=hachu.c;h=dcf484237b587a7bdcb9e0715c333ec6bdb06640;hb=0675b3cbe33ae86364f12dbda3b2508d204d738d;hp=68c0a6cbf44fced74853321ee8a31648cf40bd0d;hpb=0123828837dde5378db597e9712e3c510a7abf1b;p=hachu.git diff --git a/hachu.c b/hachu.c index 68c0a6c..dcf4842 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) { // has Knight jump in our direction + if(p[attacker].range[i] <= N && p[attacker].range[i] >= S && p[attacker].range[i] != J) { // 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