From: H.G. Muller Date: Wed, 9 May 2012 19:05:34 +0000 (+0200) Subject: Fix bug in converting Shogi moves X-Git-Tag: v2.0~31 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f3ac0c6de501ca2f972ae2047739619ba7010c2a;p=uci2wb.git 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. --- 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 :-( } }