From 044c57fe38b45daa427c1374c8765ecd55778832 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 23 Aug 2009 11:54:28 -0700 Subject: [PATCH] OK, this is the beefed up version of the Polyglot info-string kludge, for WB and XB. --- winboard/wengineo.c | 2 +- xengineoutput.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 1.7.0.4