X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=bb52007006a024234dcdf8601b640ee48a7887ca;hb=75c82871211daf66c50935b39427e78922d20a5e;hp=5d0c420bb9da684d4534b5fb9c3741b17d48e473;hpb=91477ff29379bf3b98aab23510cf6cb3830e686c;p=xboard.git diff --git a/backend.c b/backend.c index 5d0c420..bb52007 100644 --- a/backend.c +++ b/backend.c @@ -13867,17 +13867,17 @@ PonderNextMoveEvent(newState) } void -NewSettingEvent(option, command, value) +NewSettingEvent(option, feature, command, value) char *command; - int option, value; + int option, value, *feature; { char buf[MSG_SIZ]; if (gameMode == EditPosition) EditPositionDone(TRUE); sprintf(buf, "%s%s %d\n", (option ? "option ": ""), command, value); - SendToProgram(buf, &first); + if(feature == NULL || *feature) SendToProgram(buf, &first); if (gameMode == TwoMachinesPlay) { - SendToProgram(buf, &second); + if(feature == NULL || feature[(int*)&second - (int*)&first]) SendToProgram(buf, &second); } }