X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gnushogi%2Fcommondsp.c;h=4823f5f8e0a44152fb6776f0ee4f1413a6934df2;hb=1659d737d4bae32618488aa12eedba627ea13d60;hp=a03d69d355b9f29ccf4bb119816018a2bb467012;hpb=a0c1400035104ea33d6eda049dbdb5fe2150de9a;p=gnushogi.git diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index a03d69d..4823f5f 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -285,6 +285,7 @@ VerifyMove(char *s, VerifyMove_mode iop, unsigned short *mv) MoveList(opponent, 2, -1, true); generate_move_flags = false; pnt = TrPnt[2]; + if(s[4] == '=') s[4] = '\0'; /* deferral is implied */ while (pnt < TrPnt[3]) { @@ -1718,7 +1719,7 @@ InputCommand(char *command, int root) } else { strcpy(sx, command); backlog[0]= '\0'; /* make sure no backlog is left */ - done = true; + command = NULL; } /* extract first word */ @@ -1797,7 +1798,7 @@ InputCommand(char *command, int root) "shogi" #endif ); - printf("debug=1 setboard=0 sigint=0 memory=1 setboard=1 done=1\n"); + printf("debug=1 setboard=1 sigint=0 memory=1 done=1\n"); } else if (strcmp(s, ".") == 0) { // periodic update request of analysis info: send stat01 info