X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=engineoutput.c;h=f37b9c2b4d247cb1e57c0c2c480d0ec59b5a1e67;hb=632da8a159457f147071df149300c5fdc575b292;hp=8509f1af71b262973fc3cf7dc3e4beb94210b52b;hpb=ee432318a4abcbe20b1bf9300a791e0f257d08ee;p=xboard.git diff --git a/engineoutput.c b/engineoutput.c index 8509f1a..f37b9c2 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -29,10 +29,6 @@ #include -#if HAVE_MALLOC_H -#include -#endif - #if STDC_HEADERS # include # include @@ -158,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; } @@ -179,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 ); }