X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=hachu.c;h=d3413529cfae4574530ace4bead97a78fd0f4edc;hb=249a20cb9dd6f29fa5450deafbb44dfabf723f90;hp=f457569afe5504152c13aeb291300735a00c5f4b;hpb=a75e1aad5e395892ba954437861313e14556df6c;p=hachu.git diff --git a/hachu.c b/hachu.c index f457569..d341352 100644 --- a/hachu.c +++ b/hachu.c @@ -1122,7 +1122,7 @@ GenNonCapts (int promoSuppress) } } else if(r == M) { // FIDE Pawn; check double-move - if(!NewNonCapture(x, x+v, pFlag) && chessFlag && promoBoard[x-v]) + if(!NewNonCapture(x, x+v, pFlag) && chessFlag && promoBoard[x-v] & LAST_RANK) NewNonCapture(x, x+2*v, pFlag), moveStack[msp-1] |= DEFER; // use promoSuppress flag as e.p. flag } continue;