From e6b3635549cc41aed90a2a9d21fec56cae757b66 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 4 Mar 2014 22:04:04 +0100 Subject: [PATCH] Fix entry of deferrals XBoard suffixes deferred promotions with an = sign, but GNU Shogi's internal move generator to which the input move is compared doesn't. Now we strip off the promochar if it is an =. --- gnushogi/commondsp.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index a03d69d..48a8ef4 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -285,6 +285,7 @@ VerifyMove(char *s, VerifyMove_mode iop, unsigned short *mv) MoveList(opponent, 2, -1, true); generate_move_flags = false; pnt = TrPnt[2]; + if(s[4] == '=') s[4] = '\0'; /* deferral is implied */ while (pnt < TrPnt[3]) { -- 1.7.0.4