From f3ac0c6de501ca2f972ae2047739619ba7010c2a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 9 May 2012 21:05:34 +0200 Subject: [PATCH] Fix bug in converting Shogi moves The patch that put the move conversion in separate routines broke UCI2WB for Shogi, because it still tested for LF to recognize non-promotions, while the move now was null-terminated. --- README.txt | 3 +++ UCI2WB.c | 2 +- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/README.txt b/README.txt index 10f4adb..afef1f8 100644 --- a/README.txt +++ b/README.txt @@ -46,6 +46,9 @@ H.G.Muller Change log: +9/5/2012 +Fix bug in converting shogi moves, introduced in v1.8 + 19/4/2012 1.9 Remove S-Chess move translation, to parallel change in UCUI S-Chess 'standard' Implement WB exclude feature diff --git a/UCI2WB.c b/UCI2WB.c index c075731..78ab021 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -266,7 +266,7 @@ Move4Engine(char *m) m[2] = 'a'+'0'+size - m[2]; m[3] = 'a'+'0'+size - m[3]; if(m[4] == '=') m[4] = 0; // no '=' in USI format! - else if(m[4] != '\n') m[4] = '+'; // cater to WB 4.4 bug :-( + else if(m[4]) m[4] = '+'; // cater to WB 4.4 bug :-( } } -- 1.7.0.4