X-Git-Url: http://winboard.nl/cgi-bin?p=uci2wb.git;a=blobdiff_plain;f=UCI2WB.c;h=37f9de63b5418cea2f073e62621e2a9a37df405a;hp=21f5fa09ad1d0367da7e35ac8a23eb852d605a3a;hb=be5b48e447abc318aa999ad07198ba2da3fff41f;hpb=13c87da45a5c5eec90187fa5d32e9256058d484d diff --git a/UCI2WB.c b/UCI2WB.c index 21f5fa0..37f9de6 100644 --- a/UCI2WB.c +++ b/UCI2WB.c @@ -469,7 +469,7 @@ GUI2Engine() } else if(!strcmp(command, "setboard")) { stm = (strstr(line+9, " b ") ? BLACK : WHITE); - if(p = strchr(line+9, '[')) { char c; + if((p = strchr(line+9, '[')) && !varOpt) { char c; *p++ = 0; q = strchr(p, ']'); *q = 0; r = q + 4; if(sc == 's') q[2] = 'w' + 'b' - q[2], strcpy(r=q+3, " 1\n"); // Shogi: reverse color else r = strchr(strchr(q+4, ' ') + 1, ' '); // skip to second space (after e.p. square)