From d42ee84b1cd4c03d984d37ecebc6f3a70a7899b2 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Thu, 20 Apr 2006 15:03:37 -0400 Subject: [PATCH] parse_xboard_line() complains about the 'remove' command. Fixed. --- src/engine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine.c b/src/engine.c index 3ccaca3..366385d 100644 --- a/src/engine.c +++ b/src/engine.c @@ -388,19 +388,19 @@ static void parse_xboard_line(GAME *g, char *str) // We should now have the real move which may be in SAN or frfr format. if (sscanf(p, "%[0-9a-hprnqkxPRNBQKO+=#-]", m) == 1) { - if (strlen(m) < 2) + if (TEST_FLAG(g->flags, GF_GAMEOVER)) RETURN(d); - if (TEST_FLAG(g->flags, GF_GAMEOVER)) + if (strlen(m) < 2) RETURN(d); + p = m + strlen(m) - 1; + // Test SAN or a2a4 format. -#if 0 if (!isdigit(*p) && *p != 'O' && *p != '+' && *p != '#' && ((*(p - 1) != '=' || !isdigit(*(p - 1))) && pgn_piece_to_int(*p) == -1)) return; -#endif p = m; -- 2.11.4.GIT