From: H.G. Muller Date: Tue, 11 Jan 2011 10:34:07 +0000 (+0100) Subject: Reset 50-move counter on all pawn-like Lance moves X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e0691ae1d55be2a77484f99294ab28cd5f6e381a;p=xboard.git Reset 50-move counter on all pawn-like Lance moves Now the Lance represents a Pawn-like piece not only in variant fairy, but anywhere outside Shogi / Superchess, its moves should also reset the 50-move counter in those cases. Especially important for Spartan Chess, where the Lance actually participates. --- diff --git a/backend.c b/backend.c index 5224018..75fc9a1 100644 --- a/backend.c +++ b/backend.c @@ -8422,7 +8422,8 @@ ApplyMove(fromX, fromY, toX, toY, promoChar, board) int i; if( board[fromY][fromX] == WhiteLance || board[fromY][fromX] == BlackLance ) { - if( gameInfo.variant == VariantFairy ) board[EP_STATUS] = EP_PAWN_MOVE; // Lance in fairy is Pawn-like + if( gameInfo.variant != VariantSuper && gameInfo.variant != VariantShogi ) + board[EP_STATUS] = EP_PAWN_MOVE; // Lance is Pawn-like in most variants } else if( board[fromY][fromX] == WhitePawn ) { if(fromY != toY) // [HGM] Xiangqi sideway Pawn moves should not count as 50-move breakers