From 632da8a159457f147071df149300c5fdc575b292 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 8 May 2011 11:28:44 +0200 Subject: [PATCH] No clearing of Engine-Output memos on stat01 --- engineoutput.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/engineoutput.c b/engineoutput.c index 7dc403e..f37b9c2 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -154,8 +154,14 @@ void SetProgramStats( FrontEndProgramStats * stats ) // now directly called by b ed.name = second.tidy; } + if( ed.pv != 0 && ed.pv[0] == ' ' ) { + if( strncmp( ed.pv, " no PV", 6 ) == 0 ) { /* Hack on hack! :-O */ + ed.pv = ""; + } + } + /* Clear memo if needed */ - if( lastDepth[which] > depth || (lastDepth[which] == depth && depth <= 1) ) { + if( lastDepth[which] > depth || (lastDepth[which] == depth && depth <= 1 && ed.pv[0]) ) { // no reason to clear if we won't add line clearMemo = TRUE; } @@ -175,12 +181,6 @@ void SetProgramStats( FrontEndProgramStats * stats ) // now directly called by b lastDepth[which] = depth == 1 && ed.nodes == 0 ? 0 : depth; // [HGM] info-line kudge lastForwardMostMove[which] = forwardMostMove; - if( ed.pv != 0 && ed.pv[0] == ' ' ) { - if( strncmp( ed.pv, " no PV", 6 ) == 0 ) { /* Hack on hack! :-O */ - ed.pv = ""; - } - } - UpdateControls( &ed ); } -- 1.7.0.4