From: H.G. Muller Date: Sun, 31 Oct 2010 12:20:08 +0000 (+0100) Subject: Delete some stale promotion code X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=42747fc80391054f0b2c4794645a1db73984b842;p=xboard.git Delete some stale promotion code The correction of the promotion piece to Ferz in Shatran-like variants in ApplyMove() was no longer needed, as the new promotion code already does this in the move parser. --- diff --git a/backend.c b/backend.c index a3a06b7..07df9ce 100644 --- a/backend.c +++ b/backend.c @@ -8378,10 +8378,6 @@ ApplyMove(fromX, fromY, toX, toY, promoChar, board) if( board[toY][toX] != EmptySquare ) board[EP_STATUS] = EP_CAPTURE; - /* [HGM] In Shatranj and Courier all promotions are to Ferz */ - if((gameInfo.variant==VariantShatranj || gameInfo.variant==VariantCourier || gameInfo.variant == VariantMakruk) - && promoChar != 0) promoChar = PieceToChar(WhiteFerz); - if (fromY == DROP_RANK) { /* must be first */ piece = board[toY][toX] = (ChessSquare) fromX;