From 29f26a97a226db6e7bdd0927e67cf5a5ce3dd065 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 27 Dec 2011 18:31:05 +0100 Subject: [PATCH] Fix sending of S-Chess gating moves to ICS Normal moves did not get the gating suffix sent. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index d765e81..bec700a 100644 --- a/backend.c +++ b/backend.c @@ -4948,7 +4948,7 @@ SendMoveToICS(moveType, fromX, fromY, toX, toY, promoChar) if(gameInfo.variant == VariantSChess && promoChar) { snprintf(suffix, 4, "=%c", toX == BOARD_WIDTH<<1 ? ToUpper(promoChar) : ToLower(promoChar)); - if(toX == BOARD_WIDTH>>1) moveType = WhitePromotion; // kludge to do gating at Rook + if(moveType == NormalMove) moveType = WhitePromotion; // kludge to do gating } else suffix[0] = NULLCHAR; switch (moveType) { -- 1.7.0.4