From e0691ae1d55be2a77484f99294ab28cd5f6e381a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 11 Jan 2011 11:34:07 +0100 Subject: [PATCH] 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. --- backend.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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 -- 1.7.0.4