From: H.G. Muller Date: Fri, 28 Feb 2014 09:43:08 +0000 (+0100) Subject: Fix Pawn double-push X-Git-Tag: 0.18~2 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=249a20cb9dd6f29fa5450deafbb44dfabf723f90;p=hachu.git Fix Pawn double-push Black pawns also did double-pushes from the 6th rank! --- 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;