From: H.G. Muller Date: Sun, 23 Aug 2009 00:02:58 +0000 (-0700) Subject: better polyglot support for engine ouput X-Git-Tag: v4.4.0.beta2~28 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=daa12565fa521658566703fdc5fdc6302cf0e6ca better polyglot support for engine ouput I fixed the algorithm for clearing the Engine Output window to work better with the latest Polyglot, whight outputs UCI "info strings" amongst the thinking output. --- diff --git a/winboard/wengineo.c b/winboard/wengineo.c index b562959..e27284c 100644 --- a/winboard/wengineo.c +++ b/winboard/wengineo.c @@ -547,7 +547,7 @@ void EngineOutputUpdate( FrontEndProgramStats * stats ) if( clearMemo ) DoClearMemo(which); /* Update */ - lastDepth[which] = depth; + lastDepth[which] = depth == 1 && ed.nodes == 0 ? 0 : depth; // [HGM] info-line kudge lastForwardMostMove[which] = forwardMostMove; if( ed.pv != 0 && ed.pv[0] == ' ' ) { @@ -807,7 +807,8 @@ static void UpdateControls( EngineOutputData * ed ) sprintf( s_time, "%d:%02d.%02d", time_secs / 60, time_secs % 60, time_cent ); /* Put all together... */ - sprintf( buf, "%3d\t%s\t%s\t%s\t", ed->depth, s_score, s_nodes, s_time ); + if(ed->nodes == 0) /*sprintf( buf, "%3d\t \t \t \t", ed->depth );*/ buf[0]=0; else + sprintf( buf, "%3d\t%s\t%s\t%s\t", ed->depth, s_score, s_nodes, s_time ); /* Add PV */ buflen = strlen(buf);