Merge branch 'master' into gtk
[xboard.git] / xengineoutput.c
index 7a0b5bc..c7e1e92 100644 (file)
@@ -144,7 +144,7 @@ extern int opponentKibitzes;
 
 /* Imports from winboard.c */
 //extern HWND engineOutputDialog;
-extern Arg layoutArgs[2], formArgs[2], messageArgs[4];
+extern Arg layoutArgs[2], formArgs[2];
 
 //extern WindowPlacement wpEngineOutput;
 
@@ -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);