From: H.G.Muller Date: Tue, 23 Dec 2014 21:13:50 +0000 (+0100) Subject: Send ucinewgame after isready/readyok handshake X-Git-Tag: v2.3~33 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=2f647898757b6c71ac708056dcc43a09df1c6f3e;p=uci2wb.git Send ucinewgame after isready/readyok handshake --- diff --git a/UCI2WB.c b/UCI2WB.c index 2f450e8..856ada3 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -402,10 +402,10 @@ GUI2Engine() oldMem = memory; // we can set other options here if(sc == 'x') { if(newGame) fprintf(toE, "setoption newgame\n"); } else // optional in UCCI - fprintf(toE, "u%cinewgame\n", sc); fflush(toE); pause = 1; // wait for option settings to take effect fprintf(toE, "isready\n"); fflush(toE); Sync(PAUSE); // wait for readyok + fprintf(toE, "u%cinewgame\n", sc); fflush(toE); } else if(!strcmp(command, "usermove")) { sscanf(line, "usermove %s", command); // strips off linefeed