From: H.G.Muller Date: Fri, 6 May 2016 15:56:46 +0000 (+0200) Subject: Fix input of three-leg move X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=cc87afb316a92a2c0b26be197017281584aea791;p=hachu.git 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. --- 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