From c3e8fae6dad454bdef9887925f541ba466592471 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Thu, 15 Oct 2015 17:25:21 +0200 Subject: [PATCH] Display exclusion header only for engines supporting exclusion The display of the exclusion header in the Engine Output window is made dependent on the engine having emitted feature exclude=1 at startup. --- engineoutput.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/engineoutput.c b/engineoutput.c index 3e9da12..c0f915f 100644 --- a/engineoutput.c +++ b/engineoutput.c @@ -231,11 +231,12 @@ SetProgramStats (FrontEndProgramStats * stats) // now directly called by back-en header[which][0] = NULLCHAR; if(gameMode == AnalyzeMode) { ChessProgramState *cps = (which ? &second : &first); + char exclu = cps->excludeMoves ? exclusionHeader : ""; if((multi = MultiPV(cps)) >= 0) { snprintf(header[which], MSG_SIZ, "\t%s viewpoint\t\tfewer / Multi-PV setting = %d / more\n", appData.whitePOV || appData.scoreWhite ? "white" : "mover", cps->option[multi].value); } - if(!which) snprintf(header[which]+strlen(header[which]), MSG_SIZ-strlen(header[which]), "%s%s", exclusionHeader, columnHeader); + if(!which) snprintf(header[which]+strlen(header[which]), MSG_SIZ-strlen(header[which]), "%s%s", exclu, columnHeader); InsertIntoMemo( which, header[which], 0); } else { snprintf(header[which], MSG_SIZ, "%s", columnHeader); -- 1.7.0.4