From cc87afb316a92a2c0b26be197017281584aea791 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Fri, 6 May 2016 17:56:46 +0200 Subject: [PATCH] Fix input of three-leg move The second comma was not read away, with as a result that the third square could not be parsed, and triple-leg move would always be considered illegal. --- hachu.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hachu.c b/hachu.c index ec25a6b..430af97 100644 --- a/hachu.c +++ b/hachu.c @@ -2680,6 +2680,7 @@ ParseMove (char *moveText) } else if(f + 3*kStep[i] == t) { // Lion Dog 1+2 move t2 = SPECIAL + 64 + i; } else if(*moveText == ',') { // 3rd leg follows! + moveText++; if(f + 2*kStep[i] != t) return INVALID; // 3-leg moves must be linear! moveText += ReadSquare(moveText, &e); if(e != t) return INVALID; // must again continue with same piece -- 1.7.0.4