From: H.G. Muller Date: Thu, 1 Dec 2011 17:45:55 +0000 (+0100) Subject: Change encoding of seirawan ICS gating-castlings X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d57f0dc382fe3f882d91d98a41756dfdda25ec7d;p=xboard.git Change encoding of seirawan ICS gating-castlings In stead of using upper/lower-case promoChar, the ICS now uses RxK notation, like WinBoard writes in SAN, for better consistency. --- diff --git a/backend.c b/backend.c index 14cdf0c..8d6a273 100644 --- a/backend.c +++ b/backend.c @@ -4954,9 +4954,10 @@ SendMoveToICS(moveType, fromX, fromY, toX, toY, promoChar) char user_move[MSG_SIZ]; char suffix[4]; - if(gameInfo.variant == VariantSChess && promoChar) + if(gameInfo.variant == VariantSChess && promoChar) { snprintf(suffix, 4, "=%c", toX == BOARD_WIDTH<<1 ? ToUpper(promoChar) : ToLower(promoChar)); - else suffix[0] = NULLCHAR; + if(toX == BOARD_WIDTH>>1) moveType = WhitePromotion; // kludge to do gating at Rook + } else suffix[0] = NULLCHAR; switch (moveType) { default: