From d57f0dc382fe3f882d91d98a41756dfdda25ec7d Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 1 Dec 2011 18:45:55 +0100 Subject: [PATCH] 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. --- backend.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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: -- 1.7.0.4