From 42747fc80391054f0b2c4794645a1db73984b842 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 31 Oct 2010 13:20:08 +0100 Subject: [PATCH] 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. --- backend.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) 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; -- 1.7.0.4