From d82d80274f7fb7c07dcf12ba873bb4c842279171 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 9 Feb 2016 10:25:40 +0100 Subject: [PATCH] Fix type-in of hit-and-run captures Processing of the move in ParseOneMove (which basically duplicates the code of LoadGameOneMove) was not yet adapted to ignore ';' as a promotion character when it is internally used to append 'kill squares' where locust capture should take place.. --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 7f06f2e..a4f7852 100644 --- a/backend.c +++ b/backend.c @@ -5556,6 +5556,7 @@ ParseOneMove (char *move, int moveNum, ChessMove *moveType, int *fromX, int *fro *toX = currentMoveString[2] - AAA; *toY = currentMoveString[3] - ONE; *promoChar = currentMoveString[4]; + if(*promoChar == ';') *promoChar = NULLCHAR; if (*fromX < BOARD_LEFT || *fromX >= BOARD_RGHT || *fromY < 0 || *fromY >= BOARD_HEIGHT || *toX < BOARD_LEFT || *toX >= BOARD_RGHT || *toY < 0 || *toY >= BOARD_HEIGHT) { if (appData.debugMode) { -- 1.7.0.4