X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard2uci.c;fp=xboard2uci.c;h=529f041ffec618a1c70958a0952c3b8e39a5a36d;hb=acb140befabd8b0f1a8606470013b420d05b4fb7;hp=97c7b732e1881fd7fd9a21dcbdac6319e1ddf8c7;hpb=a0f731f21d6aa26dbf7246039a1c66c2ade0533f;p=polyglot.git diff --git a/xboard2uci.c b/xboard2uci.c index 97c7b73..529f041 100644 --- a/xboard2uci.c +++ b/xboard2uci.c @@ -1462,10 +1462,17 @@ static void send_board(int extra_move) { // send_info() static void send_info() { - if (XB->post) { - gui_send(GUI,"%d %+d %.0f "S64_FORMAT" %s",Uci->best_depth>0?Uci->best_depth:1, + int min_depth; + if(option_get_bool(Option,"WbWorkArounds")){ + // Silly bug in some versions of WinBoard. + // depth <=1 clears the engine output window. + // Why shouldn't an engine be allowed to send info at depth 1? + min_depth=2; + }else{ + min_depth=1; + } + gui_send(GUI,"%d %+d %.0f "S64_FORMAT" %s",Uci->best_depth>min_depth?Uci->best_depth:min_depth, 0,0,0.0,0,Uci->info); - } } // send_pv()