Fix input of three-leg move
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 6 May 2016 15:56:46 +0000 (17:56 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 6 May 2016 15:56:46 +0000 (17:56 +0200)
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

diff --git a/hachu.c b/hachu.c
index ec25a6b..430af97 100644 (file)
--- 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\r
       t2 = SPECIAL + 64 + i;\r
     } else if(*moveText == ',') { // 3rd leg follows!\r
+      moveText++;\r
       if(f + 2*kStep[i] != t) return INVALID; // 3-leg moves must be linear!\r
       moveText += ReadSquare(moveText, &e);\r
       if(e != t) return INVALID; // must again continue with same piece\r