Send ucinewgame after isready/readyok handshake
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 23 Dec 2014 21:13:50 +0000 (22:13 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 23 Dec 2014 21:13:50 +0000 (22:13 +0100)
UCI2WB.c

index 2f450e8..856ada3 100644 (file)
--- a/UCI2WB.c
+++ b/UCI2WB.c
@@ -402,10 +402,10 @@ GUI2Engine()
            oldMem = memory;\r
            // we can set other options here\r
            if(sc == 'x') { if(newGame) fprintf(toE, "setoption newgame\n"); } else // optional in UCCI\r
-           fprintf(toE, "u%cinewgame\n", sc); fflush(toE);\r
            pause = 1; // wait for option settings to take effect\r
            fprintf(toE, "isready\n"); fflush(toE);\r
            Sync(PAUSE); // wait for readyok\r
+           fprintf(toE, "u%cinewgame\n", sc); fflush(toE);\r
        }\r
        else if(!strcmp(command, "usermove")) {\r
            sscanf(line, "usermove %s", command); // strips off linefeed\r