X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=blobdiff_plain;f=UCI2WB.c;fp=UCI2WB.c;h=1cb0a1656b06c9d06064fd3377e2047176a8d966;hp=ad897f5aa20cf13d4f144547c709cd802ad5f42f;hb=8d90214e278c27dbf72b24383ac9e3ad24d54a27;hpb=3ec8885c5e09e26dc907693ff02adc6c46d7dc73 diff --git a/UCI2WB.c b/UCI2WB.c index ad897f5..1cb0a16 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -542,10 +542,10 @@ DoCommand () if(memory != oldMem && hasHash) EPRINT((f, "# setoption %s%s %s%d\n", nameWord, hashOpt, valueWord, memory)) oldMem = memory; // we can set other options here - if(sc == 'x') { if(newGame) EPRINT((f, "# setoption newgame\n")) } else // optional in UCCI if(varOpt) EPRINT((f, "# setoption name UCI_Variant value chess\n")) EPRINT((f, "# isready\n")) fflush(toE); HandleEngineOutput(); // wait for readyok + if(sc == 'x') { if(newGame) EPRINT((f, "# setoption newgame\n")) } else // optional in UCCI EPRINT((f, "# u%cinewgame\n", sc)) fflush(toE); } else if(!strcmp(command, "option")) {