From: H.G. Muller Date: Sun, 23 Aug 2009 18:54:28 +0000 (-0700) Subject: OK, this is the beefed up version of the Polyglot info-string kludge, for WB and XB. X-Git-Tag: v4.4.0.beta2~12 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=044c57fe38b45daa427c1374c8765ecd55778832 OK, this is the beefed up version of the Polyglot info-string kludge, for WB and XB. --- diff --git a/winboard/wengineo.c b/winboard/wengineo.c index e27284c..1c3238f 100644 --- a/winboard/wengineo.c +++ b/winboard/wengineo.c @@ -807,7 +807,7 @@ static void UpdateControls( EngineOutputData * ed ) sprintf( s_time, "%d:%02d.%02d", time_secs / 60, time_secs % 60, time_cent ); /* Put all together... */ - if(ed->nodes == 0) /*sprintf( buf, "%3d\t \t \t \t", ed->depth );*/ buf[0]=0; else + if(ed->nodes == 0 && ed->score == 0 && ed->time == 0) sprintf( buf, "%3d\t", ed->depth ); else sprintf( buf, "%3d\t%s\t%s\t%s\t", ed->depth, s_score, s_nodes, s_time ); /* Add PV */ diff --git a/xengineoutput.c b/xengineoutput.c index 7a0b5bc..54c8859 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -917,8 +917,8 @@ static void UpdateControls( EngineOutputData * ed ) sprintf( s_time, "%d:%02d.%02d", time_secs / 60, time_secs % 60, time_cent ); /* Put all together... */ - 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 ); + if(ed->nodes == 0 && ed->score == 0 && ed->time == 0) sprintf( buf, "%3d\t", ed->depth ); else + sprintf( buf, "%3d %s %s\t%s\t", ed->depth, s_score, s_nodes, s_time ); /* Add PV */ buflen = strlen(buf);